[Python-modules-commits] r26179 - in packages/python-urllib3/trunk/debian (3 files)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Wed Oct 16 20:34:02 UTC 2013


    Date: Wednesday, October 16, 2013 @ 20:33:59
  Author: eriol-guest
Revision: 26179

Switched to pybuild

Modified:
  packages/python-urllib3/trunk/debian/changelog
  packages/python-urllib3/trunk/debian/control
  packages/python-urllib3/trunk/debian/rules

Modified: packages/python-urllib3/trunk/debian/changelog
===================================================================
--- packages/python-urllib3/trunk/debian/changelog	2013-10-16 17:33:54 UTC (rev 26178)
+++ packages/python-urllib3/trunk/debian/changelog	2013-10-16 20:33:59 UTC (rev 26179)
@@ -1,6 +1,7 @@
 python-urllib3 (1.7.1-1) UNRELEASED; urgency=low
 
   * New upstream release
+  * Switched to pybuild
   * debian/compat
     - Bumped debhelper compatibility level to 9
   * debian/control
@@ -17,7 +18,7 @@
   * debian/patches/06_fix_abuse_of_match_hostname_for_DoS.patch
     - Removed since fixed upstream
 
- -- Daniele Tricoli <eriol at mornie.org>  Wed, 16 Oct 2013 19:19:10 +0200
+ -- Daniele Tricoli <eriol at mornie.org>  Wed, 16 Oct 2013 22:26:05 +0200
 
 python-urllib3 (1.6-2) unstable; urgency=high
 

Modified: packages/python-urllib3/trunk/debian/control
===================================================================
--- packages/python-urllib3/trunk/debian/control	2013-10-16 17:33:54 UTC (rev 26178)
+++ packages/python-urllib3/trunk/debian/control	2013-10-16 20:33:59 UTC (rev 26179)
@@ -5,6 +5,7 @@
 Priority: optional
 Build-Depends:
  debhelper (>= 9),
+ dh-python,
  python-all (>= 2.6.6-3),
  python-coverage (>= 3.4),
  python-mock,

Modified: packages/python-urllib3/trunk/debian/rules
===================================================================
--- packages/python-urllib3/trunk/debian/rules	2013-10-16 17:33:54 UTC (rev 26178)
+++ packages/python-urllib3/trunk/debian/rules	2013-10-16 20:33:59 UTC (rev 26179)
@@ -1,22 +1,16 @@
 #!/usr/bin/make -f
 
 export PYTHONWARNINGS=d
+export PYBUILD_DESTDIR_python2=debian/python-urllib3/
+export PYBUILD_DESTDIR_python3=debian/python3-urllib3/
 
-PYVERS := $(shell pyversions -r)
-PY3VERS := $(shell py3versions -r)
 
 %:
-	dh $@ --with python2,python3 --buildsystem=python_distutils
+	dh $@ --with python2,python3 --buildsystem=pybuild
 
 override_dh_auto_configure:
 	rm -f urllib3/packages/six.py
 
-override_dh_auto_build:
-	set -ex; \
-	for python in $(PYVERS) $(PY3VERS); do \
-		$$python setup.py build; \
-	done
-
 override_dh_auto_clean:
 	rm -rf build
 	rm -f .coverage
@@ -24,18 +18,7 @@
 	dh_auto_clean
 
 override_dh_auto_install:
-	set -ex; \
-	for python in $(PYVERS); do \
-		$$python setup.py install --skip-build --root debian/python-urllib3 \
-			--install-layout deb; \
-	done
-
-	set -ex; \
-	for python in $(PY3VERS); do \
-		$$python setup.py install --skip-build --root debian/python3-urllib3 \
-			--install-layout deb; \
-	done
-
+	dh_auto_install
 	# Remove dummyserver/ tests to not pollute namespace.
 	rm -rf debian/python*-urllib3/usr/lib/python*/dist-packages/dummyserver
 




More information about the Python-modules-commits mailing list