[Python-modules-commits] [python-pex] 01/01: d/rules: Override dh_python3 to force the /usr/bin/pex shebang to /usr/bin/python3 in the face of multiple Python 3 versions.

Barry Warsaw barry at moszumanska.debian.org
Tue Oct 6 21:08:12 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 1eeb6685ae6c8b481fc2b35c890d60e8e27ceecb
Author: Barry Warsaw <barry at debian.org>
Date:   Tue Oct 6 17:08:08 2015 -0400

    d/rules: Override dh_python3 to force the /usr/bin/pex shebang to /usr/bin/python3 in the face of multiple Python 3 versions.
---
 debian/changelog | 5 ++---
 debian/rules     | 4 +++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index fd8b507..794f239 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,7 @@
 python-pex (1.0.3-2) UNRELEASED; urgency=medium
 
-  * d/rules: Only build for the default Python 3 version, which fixes a
-    lintian warning (and bogus shebang) when multiple Python 3 versions
-    are supported.
+  * 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/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 4fa499a..8e5820a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,6 @@
 #!/usr/bin/make -f
 
 export PYBUILD_NAME=pex
-export PYBUILD_PYVER=$(shell py3versions -d)
 export DH_VERBOSE=1
 
 export pkgversion=$(shell dpkg-parsechangelog --show-field version)
@@ -24,3 +23,6 @@ override_dh_installman:
 		--no-discard-stderr --no-info \
 		debian/python-pex-cli/usr/bin/pex
 	dh_installman
+
+override_dh_python3:
+	dh_python3 --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