Hi, I would like to see octave-symbolic moved to python3-sympy by default for buster. The attached commit works for me. I only get one test failure, one of the tests already failing in #916961, so no new problems. Does this look acceptable to the other maintainers? Thanks, -- mike
From 05081d5c51afaa6becd878e67f03845a4a2a752e Mon Sep 17 00:00:00 2001
From: Mike Miller <mtmiller@debian.org>
Date: Fri, 21 Dec 2018 15:39:29 -0800
Subject: [PATCH] Use Python 3 by default
- d/control: Adjust dependencies to python3-sympy.
- d/p/0001-Use-python3-by-default.patch: New patch to set default.
Gbp-Dch: Full
---
debian/control | 4 ++--
debian/patches/0001-Use-python3-by-default.patch | 16 ++++++++++++++++
debian/patches/series | 1 +
3 files changed, 19 insertions(+), 2 deletions(-)
create mode 100644 debian/patches/0001-Use-python3-by-default.patch
create mode 100644 debian/patches/series
diff --git a/debian/control b/debian/control
index d92c91936816..6a34cae3293a 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Section: math
Priority: optional
Build-Depends: debhelper (>= 11),
dh-octave (>= 0.5.0),
- python-sympy (>= 1.0)
+ python3-sympy (>= 1.0)
Standards-Version: 4.2.1
Vcs-Browser: https://salsa.debian.org/pkg-octave-team/octave-symbolic
Vcs-Git: https://salsa.debian.org/pkg-octave-team/octave-symbolic.git
@@ -18,7 +18,7 @@ Package: octave-symbolic
Architecture: all
Depends: ${misc:Depends},
${octave:Depends},
- python-sympy
+ python3-sympy
Description: symbolic package for Octave
${octave:Upstream-Description}
.
diff --git a/debian/patches/0001-Use-python3-by-default.patch b/debian/patches/0001-Use-python3-by-default.patch
new file mode 100644
index 000000000000..71dedc799aed
--- /dev/null
+++ b/debian/patches/0001-Use-python3-by-default.patch
@@ -0,0 +1,16 @@
+Description: Use Python 3 interpreter by default
+Author: Mike Miller <mtmiller@debian.org>
+Forwarded: not-needed
+Last-Update: 2018-12-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/inst/private/defaultpython.m
++++ b/inst/private/defaultpython.m
+@@ -32,6 +32,6 @@
+
+ function python = defaultpython ()
+
+- python = 'python';
++ python = 'python3';
+
+ end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 000000000000..a1b357308958
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Use-python3-by-default.patch
--
2.19.2
Attachment:
signature.asc
Description: PGP signature