[Python-modules-commits] r16279 - in packages/python-psutil/trunk/debian (changelog rules)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Wed Mar 30 22:31:48 UTC 2011


    Date: Wednesday, March 30, 2011 @ 22:31:46
  Author: morph
Revision: 16279

* debian/rules
  - use the correct PYTHONPATH when running tests

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-30 21:55:17 UTC (rev 16278)
+++ packages/python-psutil/trunk/debian/changelog	2011-03-30 22:31:46 UTC (rev 16279)
@@ -3,8 +3,10 @@
   * New upstream release
   * debian/copyright
     - extended packaging copyright years
+  * debian/rules
+    - use the correct PYTHONPATH when running tests
 
- -- Sandro Tosi <morph at debian.org>  Wed, 30 Mar 2011 23:54:53 +0200
+ -- Sandro Tosi <morph at debian.org>  Thu, 31 Mar 2011 00:31:14 +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-30 21:55:17 UTC (rev 16278)
+++ packages/python-psutil/trunk/debian/rules	2011-03-30 22:31:46 UTC (rev 16279)
@@ -1,4 +1,7 @@
 #!/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")
+
 %:
 	dh $@
 
@@ -9,7 +12,7 @@
 	for test in test_memory_leaks.py test_psutil.py ;\
 	do \
 	    echo "running "test/$$test ; \
-	    PYTHONPATH=. python test/$$test ; \
+	    PYTHONPATH=$(PYLIBPATH) python test/$$test ; \
 	done
 
 override_dh_installchangelogs:




More information about the Python-modules-commits mailing list