[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[asymptote] 01/03: Switch to python3 interpreter.



This is an automated email from the git hooks/post-receive script.

preining pushed a commit to branch master
in repository asymptote.

commit 77ed4321522cfc43ef0a1c0ffed2ca339e7c1209
Author: Nicolas Boulenguez <nicolas@debian.org>
Date:   Tue Oct 31 11:57:29 2017 +0100

    Switch to python3 interpreter.
---
 debian/control                        |   8 +--
 debian/patches/python3_intrusive.diff | 118 ++++++++++++++++++++++++++++++++++
 debian/patches/series                 |   1 +
 debian/rules                          |   2 +-
 4 files changed, 124 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 6818e60..fe3d879 100644
--- a/debian/control
+++ b/debian/control
@@ -21,7 +21,7 @@ Build-Depends: bison,
                libncurses5-dev,
                libreadline-dev,
                libsigsegv-dev,
-               python,
+               python3,
                tex-common,
                texinfo,
                texlive-latex-base,
@@ -38,13 +38,13 @@ Vcs-Browser: https://anonscm.debian.org/gitweb/?p=debian-tex/asymptote.git
 Package: asymptote
 Architecture: any
 Depends: ${misc:Depends},
-         ${python:Depends},
+         ${python3:Depends},
          ${shlibs:Depends},
          ghostscript,
          imagemagick,
          install-info,
-         python-pil,
-         python-pil.imagetk,
+         python3-pil,
+         python3-pil.imagetk,
          texlive-binaries,
          texlive-latex-base,
          texlive-pstricks,
diff --git a/debian/patches/python3_intrusive.diff b/debian/patches/python3_intrusive.diff
new file mode 100644
index 0000000..6f69f40
--- /dev/null
+++ b/debian/patches/python3_intrusive.diff
@@ -0,0 +1,118 @@
+Description: Really switch from python2 to python3.
+Author: Nicolas Boulenguez <nicolas@debian.org>
+
+--- a/GUI/CubicBezier.py
++++ b/GUI/CubicBezier.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # Convert a Bezier curve to a polyline
+--- a/GUI/UndoRedoStack.py
++++ b/GUI/UndoRedoStack.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # UndoRedoStack implements the usual undo/redo capabilities of a GUI
+--- a/GUI/xasy.py
++++ b/GUI/xasy.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # xasy implements a graphical interface for Asymptote.
+--- a/GUI/xasy2asy.py
++++ b/GUI/xasy2asy.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # xasy2asy provides a Python interface to Asymptote
+--- a/GUI/xasyActions.py
++++ b/GUI/xasyActions.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # xasyActions implements the possible actions and their inverses
+--- a/GUI/xasyBezierEditor.py
++++ b/GUI/xasyBezierEditor.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # xasyBezierEditor implements the ability to graphically edit the location
+--- a/GUI/xasyCodeEditor.py
++++ b/GUI/xasyCodeEditor.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # xasyCodeEditor implements a simple text editor for Asymptote scripts in
+--- a/GUI/xasyColorPicker.py
++++ b/GUI/xasyColorPicker.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # xasyColorPicker implements a dialog that allows a user to choose a color
+--- a/GUI/xasyFile.py
++++ b/GUI/xasyFile.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # xasyFile implements the loading, parsing, and saving of an xasy file.
+--- a/GUI/xasyGUIIcons.py
++++ b/GUI/xasyGUIIcons.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ##################################################################
+ # This file stores the icons used by the xasy GUI
+ #
+--- a/GUI/xasyMainWin.py
++++ b/GUI/xasyMainWin.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # xasyMainWin implements the functionality of the GUI. It depends on
+--- a/GUI/xasyOptions.py
++++ b/GUI/xasyOptions.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # xasyOptions provides a mechanism for storing and restoring a user's
+--- a/GUI/xasyOptionsDialog.py
++++ b/GUI/xasyOptionsDialog.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ ###########################################################################
+ #
+ # xasyOptionsDialog implements a dialog window to allow users to edit
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -123,7 +123,7 @@
+ 	echo @set VERSION $(revision) > doc/version.texi
+ 	echo @set Datadir @datadir@ >> doc/version.texi
+ 
+-	echo "#!/usr/bin/env python" > GUI/xasyVersion.py
++	echo "#!/usr/bin/env python3" > GUI/xasyVersion.py
+ 	echo xasyVersion = \"$(revision)\" >> GUI/xasyVersion.py
+ 
+ 	if test -n "$(MSDOS)"; then \
diff --git a/debian/patches/series b/debian/patches/series
index 4e58be6..fb09793 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ honour-source-date-epoch
 #upstream-2f209f9e-fix-for-tl2016
 typos.diff
 python3_nonintrusive.diff
+python3_intrusive.diff
diff --git a/debian/rules b/debian/rules
index 2db259b..68b50f9 100644
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@ include /usr/share/dpkg/buildflags.mk
 include /usr/share/dpkg/pkg-info.mk
 
 %:
-	dh $@ --with python
+	dh $@ --with python3
 
 override_dh_auto_configure:
 	dh_auto_configure -- --enable-gc=system	\

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/asymptote.git


Reply to: