[Python-modules-commits] r26158 - in packages/python-gmpy2/trunk/debian (rules)
aomighty-guest at users.alioth.debian.org
aomighty-guest at users.alioth.debian.org
Tue Oct 15 04:14:22 UTC 2013
Date: Tuesday, October 15, 2013 @ 04:14:15
Author: aomighty-guest
Revision: 26158
Fixed module import error when tests are run. Now builds cleanly in pbuilder.
Modified:
packages/python-gmpy2/trunk/debian/rules
Modified: packages/python-gmpy2/trunk/debian/rules
===================================================================
--- packages/python-gmpy2/trunk/debian/rules 2013-10-14 18:21:13 UTC (rev 26157)
+++ packages/python-gmpy2/trunk/debian/rules 2013-10-15 04:14:15 UTC (rev 26158)
@@ -30,23 +30,27 @@
make -C $(CURDIR)/docs man
touch $@
-install: build test $(PYVERS:%=install-python%)
+install: $(PYVERS:%=install-python%)
-install-python%:
+install-python%: build
if echo "$*" | grep -q 3\..* ; then \
python$* setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-gmpy2/; \
else \
python$* setup.py install --install-layout=deb --root $(CURDIR)/debian/python-gmpy2/; \
fi
-test: build $(PYVERS:%=test-python%)
+test: $(PYVERS:%=test-python%)
-test-python%:
- python$* test/runtests.py
+test-python%: install
+ if echo "$*" | grep -q 3\..* ; then \
+ PYTHONPATH=$(CURDIR)/debian/python3-gmpy2/usr/lib/python3/dist-packages:$(PYTHONPATH) python$* test/runtests.py; \
+ else \
+ PYTHONPATH=$(CURDIR)/debian/python-gmpy2/usr/lib/python$*/dist-packages:$(PYTHONPATH) python$* test/runtests.py; \
+ fi
-binary-indep: build test install
+binary-indep: build install test
-binary-arch: build test install
+binary-arch: build install test
dh_testdir
dh_testroot
dh_installchangelogs
More information about the Python-modules-commits
mailing list