[Python-modules-commits] [python-pex] 03/03: d/rules: Override dh_python2 and dh_python3 to force the /usr/bin/pex shebang to /usr/bin/python3 in the face of multiple Python 3 versions. See this file for why we also override dh_python2.

Barry Warsaw barry at moszumanska.debian.org
Tue Oct 6 21:44:34 UTC 2015


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

barry pushed a commit to branch master
in repository python-pex.

commit 1c5fe7b6f5313b854d2650cbaa6b3b0d18ee3567
Author: Barry Warsaw <barry at debian.org>
Date:   Tue Oct 6 17:44:30 2015 -0400

    d/rules: Override dh_python2 and dh_python3 to force the /usr/bin/pex shebang to /usr/bin/python3 in the face of multiple  Python 3 versions.  See this file for why we also override dh_python2.
---
 debian/changelog | 6 ++++--
 debian/rules     | 7 +++++++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index df5279a..6833b34 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,9 @@
 python-pex (1.0.3-2) unstable; urgency=medium
 
-  * d/rules: Override dh_python3 to force the /usr/bin/pex shebang to
-    /usr/bin/python3 in the face of multiple Python 3 versions.
+  * d/rules: Override dh_python2 and dh_python3 to force the
+    /usr/bin/pex shebang to /usr/bin/python3 in the face of multiple 
+    Python 3 versions.  See this file for why we also override
+    dh_python2.
   * d/tests/control:
     - Use Test-Command instead of a separate script.
     - Bump pex verbosity in the execution test.
diff --git a/debian/rules b/debian/rules
index 8e5820a..35bdd13 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,3 +26,10 @@ override_dh_installman:
 
 override_dh_python3:
 	dh_python3 --shebang=/usr/bin/python3
+
+# 2015-10-06 barry at debian.org This is silly, but for some reason on Debian 
+# (but not Ubuntu), without this the shebang ends up as /usr/bin/python3.5 
+# when we really want /usr/bin/python3.  The above override seems to not be
+# enough.
+override_dh_python2:
+	dh_python2 --shebang=/usr/bin/python3

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pex.git



More information about the Python-modules-commits mailing list