[Python-modules-commits] r16287 - in packages/python-psutil/trunk/debian (changelog rules)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Thu Mar 31 05:53:04 UTC 2011
Date: Thursday, March 31, 2011 @ 05:53:00
Author: morph
Revision: 16287
use the correct PYTHONPATH when running tests, for all supported versions
Modified:
packages/python-psutil/trunk/debian/changelog
packages/python-psutil/trunk/debian/rules
Modified: packages/python-psutil/trunk/debian/changelog
===================================================================
--- packages/python-psutil/trunk/debian/changelog 2011-03-31 05:42:14 UTC (rev 16286)
+++ packages/python-psutil/trunk/debian/changelog 2011-03-31 05:53:00 UTC (rev 16287)
@@ -4,7 +4,7 @@
* debian/copyright
- extended packaging copyright years
* debian/rules
- - use the correct PYTHONPATH when running tests
+ - use the correct PYTHONPATH when running tests, for all supported versions
* debian/control
- it now contains also extensions, so it's an arch:any package
- move python-support from b-d-i to b-d
@@ -13,7 +13,7 @@
* debian/{control, pyversion}
- removed pyversion, replaced by XS-P-V field
- -- Sandro Tosi <morph at debian.org> Thu, 31 Mar 2011 07:41:47 +0200
+ -- Sandro Tosi <morph at debian.org> Thu, 31 Mar 2011 07:52:36 +0200
python-psutil (0.2.0-1) experimental; urgency=low
Modified: packages/python-psutil/trunk/debian/rules
===================================================================
--- packages/python-psutil/trunk/debian/rules 2011-03-31 05:42:14 UTC (rev 16286)
+++ packages/python-psutil/trunk/debian/rules 2011-03-31 05:53:00 UTC (rev 16287)
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
-PYLIBPATH := $(shell python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib")
+PYVERS:=$(shell pyversions -s)
%:
dh $@
@@ -11,8 +11,11 @@
# run tests
for test in test_memory_leaks.py test_psutil.py ;\
do \
- echo "running "test/$$test ; \
- PYTHONPATH=$(PYLIBPATH) python test/$$test ; \
+ for python in $(PYVERS) ; do \
+ echo "running "test/$$test" on "$$python ; \
+ LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_purelib") ; \
+ PYTHONPATH=$(LIB) $$python test/$$test ; \
+ done \
done
override_dh_installchangelogs:
More information about the Python-modules-commits
mailing list