[Python-modules-commits] r28805 - in packages/portalocker/trunk/debian (rules)

noahfx-guest at users.alioth.debian.org noahfx-guest at users.alioth.debian.org
Fri May 9 03:41:27 UTC 2014


    Date: Friday, May 9, 2014 @ 03:41:26
  Author: noahfx-guest
Revision: 28805

debian/rules now with python3 support 

Modified:
  packages/portalocker/trunk/debian/rules

Modified: packages/portalocker/trunk/debian/rules
===================================================================
--- packages/portalocker/trunk/debian/rules	2014-05-09 03:26:18 UTC (rev 28804)
+++ packages/portalocker/trunk/debian/rules	2014-05-09 03:41:26 UTC (rev 28805)
@@ -2,13 +2,32 @@
 
 export REPACK_SH=$(CURDIR)/debian/repack.sh
 
+PYTHON2=$(shell pyversions -vr)
+PYTHON3=$(shell py3versions -vr)
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
 
-override_dh_auto_clean:#
+
+# Skipping tests as upstream doesn't provide them along with the tarball
+override_dh_auto_test:
+
+override_dh_auto_clean:
 	dh_auto_clean
 	rm -rf build
 	rm -rf *.egg-info
 
+build-python%:
+	python$* setup.py build
+
+override_dh_auto_build: $(PYTHON3:%=build-python%)
+	dh_auto_build
+
+install-python%:
+	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+
+override_dh_auto_install: $(PYTHON3:%=install-python%)
+	dh_auto_install
+
 get-orig-source:
 	uscan --force-download




More information about the Python-modules-commits mailing list