Control: tags -1 +patch
Control: user debian-pyt...@lists.debian.org
Control: usertags -1 +python3.5
On Sat, 17 Oct 2015 16:57:35 +0100, Chris West (Faux) wrote:
> The package fails to build:
>
> [...]
> /bin/sh: 3: python3.5: not found
The attached patch fixes this issue and adds proper support for building against
multiple supported Python 3 versions.
--
Dmitry Shachnevdiff -Nru pylint-1.4.4/debian/changelog pylint-1.4.4/debian/changelog
--- pylint-1.4.4/debian/changelog 2015-08-02 03:21:47.0 +0300
+++ pylint-1.4.4/debian/changelog 2015-11-08 10:47:19.0 +0300
@@ -1,3 +1,9 @@
+pylint (1.4.4-2) UNRELEASED; urgency=medium
+
+ * Fix build with multiple supported Python versions (closes: #802126).
+
+ -- Dmitry Shachnev Sun, 08 Nov 2015 10:45:58 +0300
+
pylint (1.4.4-1) unstable; urgency=medium
* New upstream release
diff -Nru pylint-1.4.4/debian/control pylint-1.4.4/debian/control
--- pylint-1.4.4/debian/control 2015-03-25 17:06:06.0 +0300
+++ pylint-1.4.4/debian/control 2015-11-08 10:41:26.0 +0300
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Sandro Tosi
Uploaders: Python Applications Packaging Team
-Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), python3, dh-python
+Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), python3-all, dh-python
Build-Depends-Indep: python-logilab-common (>= 0.53.0), python3-logilab-common (>= 0.53.0), python-astroid (>= 1.3.6), python3-astroid (>= 1.3.6), python-unittest2, python-six, python-sphinx
Standards-Version: 3.9.6
XS-Python-Version: >= 2.6
diff -Nru pylint-1.4.4/debian/rules pylint-1.4.4/debian/rules
--- pylint-1.4.4/debian/rules 2015-03-01 21:11:04.0 +0300
+++ pylint-1.4.4/debian/rules 2015-11-08 10:58:59.0 +0300
@@ -32,13 +32,17 @@
override_dh_auto_install:
- NO_SETUPTOOLS=1 $(PYTHON2) setup.py -q install --no-compile \
+ for python in $(PYTHON2); do \
+ NO_SETUPTOOLS=1 $$python setup.py -q install --no-compile \
--root=$(CURDIR)/debian/pylint \
- --install-layout=deb
+ --install-layout=deb; \
+ done
- NO_SETUPTOOLS=1 $(PYTHON3) setup.py -q install --no-compile \
+ for python in $(PYTHON3); do \
+ NO_SETUPTOOLS=1 $$python setup.py -q install --no-compile \
--root=$(CURDIR)/debian/pylint3 \
- --install-layout=deb
+ --install-layout=deb; \
+ done
rm -rf debian/pylint/usr/lib/python*/*-packages/pylint/test
rm -rf debian/pylint3/usr/lib/python*/*-packages/pylint/test
@@ -51,13 +55,16 @@
chmod a+x debian/pylint/usr/bin/$$exec; \
done
for exec in pylint pylint-gui symilar epylint pyreverse ; do \
- # no need to change shebang in py3k execs, they are correct \
+ # no need to change shebang in py3k execs, they will be handled by dh_python3 \
chmod a+x debian/pylint3/usr/bin/$$exec; \
mv debian/pylint3/usr/bin/$$exec debian/pylint3/usr/bin/$${exec}3 ; \
done
install -m 644 elisp/pylint.el debian/pylint/usr/share/emacs/site-lisp/pylint/
+override_dh_python3:
+ dh_python3 -p pylint3 --shebang=/usr/bin/python3
+
override_dh_installman:
dh_installman -ppylint man/*.1
dh_installman -ppylint3 man/*.1
signature.asc
Description: OpenPGP digital signature