[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dealing with zope.interface unsatisfiable build-dependency.



On 07/12/2019 15:09, Håvard Flaget Aasen wrote:
If you still wish to disable tests for python 2, you might be looking for this

export PYBUILD_DISABLE_python2=test

That line in debian/rules should work.

You have some more options here: https://wiki.debian.org/Python/Pybuild
and perhaps the manpages.
Thanks, I found I also had to add export PYBUILD_DISABLE_python2-dbg=test to disable the tests for the python2 debug interpreter. Looking at the log confirms it's running the tests for python 3.x and not python 2.x as desired.

New debdiff is attached.
diff -Nru zope.interface-4.6.0/debian/changelog zope.interface-4.6.0/debian/changelog
--- zope.interface-4.6.0/debian/changelog	2019-09-05 11:09:40.000000000 +0000
+++ zope.interface-4.6.0/debian/changelog	2019-12-07 07:00:43.000000000 +0000
@@ -1,3 +1,13 @@
+zope.interface (4.6.0-2) unstable; urgency=medium
+
+  * QA upload.
+  * Drop build-dependency on nonexistent python-zope.event. Downgrades: #938909.
+  * Disable testsuite for python 2, it needs python-zope.event.
+    (keep testsuite enabled for python 3)
+  * Fix clean target.
+
+ -- Peter Michael Green <plugwash@debian.org>  Sat, 07 Dec 2019 07:00:43 +0000
+
 zope.interface (4.6.0-1) unstable; urgency=medium
 
   * QA upload.
diff -Nru zope.interface-4.6.0/debian/control zope.interface-4.6.0/debian/control
--- zope.interface-4.6.0/debian/control	2019-09-05 11:09:40.000000000 +0000
+++ zope.interface-4.6.0/debian/control	2019-12-07 07:00:43.000000000 +0000
@@ -12,7 +12,6 @@
                python-all-dbg:any,
                python-all-dev:any,
                python-setuptools,
-               python-zope.event,
                python3-all-dbg:any,
                python3-all-dev:any,
                python3-setuptools,
diff -Nru zope.interface-4.6.0/debian/rules zope.interface-4.6.0/debian/rules
--- zope.interface-4.6.0/debian/rules	2016-07-05 21:43:11.000000000 +0000
+++ zope.interface-4.6.0/debian/rules	2019-12-07 07:00:43.000000000 +0000
@@ -3,6 +3,8 @@
 export PYBUILD_NAME=zope.interface
 #export PYBUILD_VERBOSE=1
 #export DH_VERBOSE=1
+export PYBUILD_DISABLE_python2=test
+export PYBUILD_DISABLE_python2-dbg=test
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
@@ -97,3 +99,9 @@
 override_dh_strip:
 	dh_strip -p$(package) --dbg-package=$(package)-dbg
 	dh_strip -p$(package3) --dbg-package=$(package3)-dbg
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f .eggs/README.txt
+	rm -f src/zope.interface.egg-info/requires.txt
+	rm -f src/zope/interface/_zope_interface_coptimizations.*.so

Reply to: