From d7459e29377431e6159c761a1d902e9fb5a86bb1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org>
Date: Sun, 12 Jun 2011 22:21:59 +0200
Subject: [PATCH] read default Python version from local config file, not the
 system one

---
 tests/t3/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/t3/Makefile b/tests/t3/Makefile
index 891a239..6803bfb 100644
--- a/tests/t3/Makefile
+++ b/tests/t3/Makefile
@@ -2,15 +2,15 @@
 
 all: run check
 
-DPY=$(shell pyversions -d)
+DPY=$(shell PYTHONPATH=../../ python -c 'import debpython.version as v; print(v.vrepr(v.DEFAULT))')
 
 run: clean
 	dpkg-buildpackage -b -us -uc
 
 check:
-	grep -q "pycompile -p python-foo /usr/lib/python-foo -V $(shell pyversions -vd)"\
+	grep -q "pycompile -p python-foo /usr/lib/python-foo -V $(DPY)"\
 		debian/python-foo/DEBIAN/postinst
-	test -f debian/python-foo/usr/lib/${DPY}/dist-packages/foo/bar.so
+	test -f debian/python-foo/usr/lib/python${DPY}/dist-packages/foo/bar.so
 	test ! -f debian/python-foo/usr/share/pyshared/foo/bar.so
 
 clean:
-- 
GitLab