[Python-modules-commits] r30309 - in packages/mockldap/trunk/debian (rules)

fladi-guest at users.alioth.debian.org fladi-guest at users.alioth.debian.org
Thu Aug 28 14:25:27 UTC 2014


    Date: Thursday, August 28, 2014 @ 14:25:26
  Author: fladi-guest
Revision: 30309

Switch buildsystem to pybuild.

Modified:
  packages/mockldap/trunk/debian/rules

Modified: packages/mockldap/trunk/debian/rules
===================================================================
--- packages/mockldap/trunk/debian/rules	2014-08-28 14:25:06 UTC (rev 30308)
+++ packages/mockldap/trunk/debian/rules	2014-08-28 14:25:26 UTC (rev 30309)
@@ -3,46 +3,16 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-PYVERS :=  $(shell pyversions -r)
-PY3VERS := $(shell py3versions -r)
+export PYBUILD_NAME=mockldap
+export PYBUILD_DISABLE_python3=test
 
 %:
-	dh $@ --with python2,python3,sphinxdoc
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_auto_build:
-	set -e; \
-	for py in $(PYVERS) $(PY3VERS); do \
-		$$py -B setup.py build; \
-	done
+	dh_auto_build
 	PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs/source docs/.build/html
 
 override_dh_auto_clean:
-	set -e; \
-	for py in $(PYVERS) $(PY3VERS); do \
-		$$py -B setup.py clean; \
-		rm -rf build; \
-	done
-
-override_dh_auto_install:
-	set -e; \
-	for py in $(PYVERS); do \
-		$$py -B setup.py install --skip-build --root debian/python-mockldap \
-		                      --install-layout deb; \
-	done
-	set -e; \
-	for py in $(PY3VERS); do \
-		$$py -B setup.py install --skip-build --root debian/python3-mockldap \
-		                      --install-layout deb; \
-	done
-
-override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	set -e; \
-	for python in $(PYVERS); do \
-	  $$python setup.py test ; \
-	done
-endif
-
-override_dh_auto_clean:
 	dh_auto_clean
 	rm -rf docs/.build




More information about the Python-modules-commits mailing list