[Python-modules-commits] r23167 - in packages/python-odf/trunk/debian (control rules)

toabctl-guest at users.alioth.debian.org toabctl-guest at users.alioth.debian.org
Sat Dec 15 14:58:34 UTC 2012


    Date: Saturday, December 15, 2012 @ 14:58:32
  Author: toabctl-guest
Revision: 23167

* Only build for python >= 2.7
* Set PYTHONPATH for tests

Modified:
  packages/python-odf/trunk/debian/control
  packages/python-odf/trunk/debian/rules

Modified: packages/python-odf/trunk/debian/control
===================================================================
--- packages/python-odf/trunk/debian/control	2012-12-15 13:24:27 UTC (rev 23166)
+++ packages/python-odf/trunk/debian/control	2012-12-15 14:58:32 UTC (rev 23167)
@@ -5,7 +5,7 @@
 Uploaders: Thomas Bechtold <thomasbechtold at jpberlin.de>, W. Martin Borgert <debacle at debian.org>
 Standards-Version: 3.9.3
 Build-Depends: debhelper (>= 8), python-all
-X-Python-Version: >= 2.6
+X-Python-Version: >= 2.7
 Homepage: https://joinup.ec.europa.eu/software/odfpy/home
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-odf/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-odf/trunk/

Modified: packages/python-odf/trunk/debian/rules
===================================================================
--- packages/python-odf/trunk/debian/rules	2012-12-15 13:24:27 UTC (rev 23166)
+++ packages/python-odf/trunk/debian/rules	2012-12-15 14:58:32 UTC (rev 23167)
@@ -10,8 +10,9 @@
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 test-python%:
 	cd tests; \
+	PYTHONPATH=../`python$* -c "import sys; print ':'.join(sys.path)"`; \
 	for F in `ls test*.py` ; do \
-		python$* $$F; \
+		PYTHONPATH=$$PYTHONPATH python$* $$F; \
 	done
 
 override_dh_auto_test: $(PYTHON2:%=test-python%)




More information about the Python-modules-commits mailing list