[Python-modules-commits] [python-gd] 05/08: Rewrite to use pybuild and export bindnow flag

Julián Moreno Patiño julian at moszumanska.debian.org
Tue Sep 27 15:49:33 UTC 2016


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

julian pushed a commit to branch master
in repository python-gd.

commit a51753a69dd937adf61afa17d0c1b5b347102c74
Author: Julián Moreno Patiño <julian at debian.org>
Date:   Tue Sep 27 10:47:54 2016 -0500

    Rewrite to use pybuild and export bindnow flag
---
 debian/rules | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/debian/rules b/debian/rules
index 07d234e..889326b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,22 +1,10 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE=1
-
-PYVERS := $(shell pyversions -r)
+export PYBUILD_NAME=gd
+export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 
 %:
-	dh $@ --with python2
-
-override_dh_auto_clean:
-	rm -rf build/
-
-override_dh_auto_install:
-	set -e; \
-	for PYTHON in $(PYVERS); do \
-		$$PYTHON ./Setup.py install --root=debian/python-gd --install-layout=deb; \
-		$$PYTHON-dbg ./Setup.py install --root=debian/python-gd-dbg --install-layout=deb; \
-	done
-	find debian/python-*-dbg ! -type d ! -name '*.so' | xargs rm -f
-	find debian/python-*-dbg -depth -empty -exec rmdir {} \;
+	dh $@ --with python2 --buildsystem=pybuild
 
 override_dh_strip:
 	dh_strip -ppython-gd --dbg-package=python-gd-dbg

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



More information about the Python-modules-commits mailing list