[Python-modules-commits] r5663 - in packages/simpleparse/trunk/debian (changelog rules)

bernat at users.alioth.debian.org bernat at users.alioth.debian.org
Mon Jun 16 17:54:01 UTC 2008


    Date: Monday, June 16, 2008 @ 17:54:00
  Author: bernat
Revision: 5663

Test only the libraries built for the current version of Python
(Closes: #485055), thanks to Daniel Schepler for spotting this one.

Modified:
  packages/simpleparse/trunk/debian/changelog
  packages/simpleparse/trunk/debian/rules

Modified: packages/simpleparse/trunk/debian/changelog
===================================================================
--- packages/simpleparse/trunk/debian/changelog	2008-06-16 17:48:42 UTC (rev 5662)
+++ packages/simpleparse/trunk/debian/changelog	2008-06-16 17:54:00 UTC (rev 5663)
@@ -7,6 +7,8 @@
     (Closes: #484437).
   * Update Standards-Version to 3.8.0
   * Do not use X[SB]-Python-Version since this is now deprecated
+  * Test only the libraries built for the current version of Python
+    (Closes: #485055), thanks to Daniel Schepler for spotting this one.
 
  -- Vincent Bernat <bernat at debian.org>  Mon, 16 Jun 2008 19:27:39 +0200
 

Modified: packages/simpleparse/trunk/debian/rules
===================================================================
--- packages/simpleparse/trunk/debian/rules	2008-06-16 17:48:42 UTC (rev 5662)
+++ packages/simpleparse/trunk/debian/rules	2008-06-16 17:54:00 UTC (rev 5663)
@@ -31,7 +31,7 @@
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 binary-post-install/python-simpleparse::
 	ln -s ../test_printers_garbage.py tests/.
-	PYTHONPATH='debian/tmp/usr/lib/python2.4/site-packages' \
+	PYTHONPATH=$$(python -c 'import sys ; print "debian/tmp/usr/lib/python%d.%d/site-packages" % sys.version_info[:2]') \
 		python tests/test.py
 	rm -f tests/test_printers_garbage.py*
 endif




More information about the Python-modules-commits mailing list