[Python-apps-commits] r14506 - in packages/pylint/trunk/debian (5 files)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Fri Dec 8 02:23:03 UTC 2017
Date: Friday, December 8, 2017 @ 02:22:59
Author: morph
Revision: 14506
* debian/patches/doc_makefile_python3.patch
- build doc extensions with python3
Added:
packages/pylint/trunk/debian/patches/
packages/pylint/trunk/debian/patches/doc_makefile_python3.patch
packages/pylint/trunk/debian/patches/series
Modified:
packages/pylint/trunk/debian/changelog
packages/pylint/trunk/debian/rules
Modified: packages/pylint/trunk/debian/changelog
===================================================================
--- packages/pylint/trunk/debian/changelog 2017-12-08 01:55:49 UTC (rev 14505)
+++ packages/pylint/trunk/debian/changelog 2017-12-08 02:22:59 UTC (rev 14506)
@@ -20,8 +20,10 @@
- update upstream copyright notice
- update single files specific copyright notices
* pylint-gui has been removed upstream
+ * debian/patches/doc_makefile_python3.patch
+ - build doc extensions with python3
- -- Sandro Tosi <morph at debian.org> Thu, 07 Dec 2017 20:55:38 -0500
+ -- Sandro Tosi <morph at debian.org> Thu, 07 Dec 2017 21:10:06 -0500
pylint (1.6.5-1) unstable; urgency=medium
Added: packages/pylint/trunk/debian/patches/doc_makefile_python3.patch
===================================================================
--- packages/pylint/trunk/debian/patches/doc_makefile_python3.patch (rev 0)
+++ packages/pylint/trunk/debian/patches/doc_makefile_python3.patch 2017-12-08 02:22:59 UTC (rev 14506)
@@ -0,0 +1,18 @@
+--- a/doc/Makefile
++++ b/doc/Makefile
+@@ -137,13 +137,13 @@ extensions.rst: ../pylint/utils.py
+ extensions.rst: $(shell find ../pylint/extensions -type f -regex '.*\.py')
+ extensions.rst: $(shell find ../pylint/extensions -type f -regex '.*\.rst')
+ rm -f extensions.rst
+- PYTHONPATH=$(PYTHONPATH) ./exts/pylint_extensions.py
++ PYTHONPATH=$(PYTHONPATH) python3 ./exts/pylint_extensions.py
+
+ features.rst: exts/pylint_features.py
+ features.rst: ../pylint/utils.py
+ features.rst: $(shell find ../pylint/checkers -type f -regex '.*\.py')
+ rm -f features.rst
+- PYTHONPATH=$(PYTHONPATH) ./exts/pylint_features.py
++ PYTHONPATH=$(PYTHONPATH) python3 ./exts/pylint_features.py
+
+ gen-examples:
+ chmod u+w ../examples/pylintrc
Added: packages/pylint/trunk/debian/patches/series
===================================================================
--- packages/pylint/trunk/debian/patches/series (rev 0)
+++ packages/pylint/trunk/debian/patches/series 2017-12-08 02:22:59 UTC (rev 14506)
@@ -0,0 +1 @@
+doc_makefile_python3.patch
Modified: packages/pylint/trunk/debian/rules
===================================================================
--- packages/pylint/trunk/debian/rules 2017-12-08 01:55:49 UTC (rev 14505)
+++ packages/pylint/trunk/debian/rules 2017-12-08 02:22:59 UTC (rev 14506)
@@ -7,7 +7,9 @@
PYTHON2 := $(shell pyversions -s)
PYTHON3 := $(shell py3versions -s)
PY2LIB := $(shell python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_purelib")
+PY3LIB := $(shell python3 -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_purelib)")
PY2SCRIPT := $(shell python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_scripts")
+PY3SCRIPT := $(shell python3 -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_scripts)")
%:
dh $@ --with python2,python3,sphinxdoc
@@ -18,7 +20,7 @@
for python in $(PYTHON2) $(PYTHON3) ; do \
NO_SETUPTOOLS=1 $$python setup.py build ; \
done
- PATH=$(CURDIR)/$(PY2SCRIPT):$$PATH $(MAKE) -C doc html PYTHONPATH=$(CURDIR)/$(PY2LIB)
+ PATH=$(CURDIR)/$(PY3SCRIPT):$$PATH $(MAKE) -C doc html PYTHONPATH=$(CURDIR)/$(PY3LIB)
override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
More information about the Python-apps-commits
mailing list