r2191 - in zope.testrunner/trunk/debian (control rules)

jinty-guest at users.alioth.debian.org jinty-guest at users.alioth.debian.org
Thu Apr 28 19:05:27 UTC 2011


    Date: Thursday, April 28, 2011 @ 19:04:40
  Author: jinty-guest
Revision: 2191

Fix building with python3

Modified:
  zope.testrunner/trunk/debian/control
  zope.testrunner/trunk/debian/rules

Modified: zope.testrunner/trunk/debian/control
===================================================================
--- zope.testrunner/trunk/debian/control	2011-04-28 19:03:49 UTC (rev 2190)
+++ zope.testrunner/trunk/debian/control	2011-04-28 19:04:40 UTC (rev 2191)
@@ -11,8 +11,8 @@
 
 Package: python3-zope.testrunner
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}
-Provides: ${python:Provides}
+Depends: ${python3:Depends}, ${misc:Depends}
+Provides: ${python3:Provides}
 Description: The zope testing framework, including the testrunner script
  The testrunner module is used to run automated tests defined using the
  unittest framework.  Its primary feature is that it *finds* tests by

Modified: zope.testrunner/trunk/debian/rules
===================================================================
--- zope.testrunner/trunk/debian/rules	2011-04-28 19:03:49 UTC (rev 2190)
+++ zope.testrunner/trunk/debian/rules	2011-04-28 19:04:40 UTC (rev 2191)
@@ -2,3 +2,28 @@
 
 %:
 	dh --with python2 --with python3 $@
+
+package=python-zope.testrunner
+package3=python3-zope.testrunner
+
+override_dh_auto_build:
+	for pyvers in $(shell pyversions -vr); do \
+		python$$pyvers setup.py build; \
+	done
+	for pyvers in $(shell py3versions -sv); do \
+		python$$pyvers setup.py build; \
+	done
+
+override_dh_auto_install:
+	set -x; \
+	for pyvers in $(shell pyversions -vr); do \
+		python$$pyvers setup.py install --install-layout=deb \
+			--root $(CURDIR)/debian/$(package); \
+	done
+	rm $(CURDIR)/debian/$(package)/usr/bin/zope-testrunner # provided by zope.testing till we migrate
+	set -x; \
+	for pyvers in $(shell py3versions -vs); do \
+		python$$pyvers setup.py install --install-layout=deb \
+			--root $(CURDIR)/debian/$(package3); \
+	done
+	mv $(CURDIR)/debian/$(package3)/usr/bin/zope-testrunner $(CURDIR)/debian/$(package3)/usr/bin/zope-testrunner-3




More information about the pkg-zope-developers mailing list