+python-pysam (0.7.5-2) UNRELEASED; urgency=medium
+
+ * debian/rules: Set PYTHONPATH correctly using dh_python
+ (thanks to Piotr Ożarowski <piotr@debian.org> for the patch)
+ Closes: #739631
+
+ -- Andreas Tille <tille@debian.org> Thu, 20 Feb 2014 19:01:46 +0100
+
python-pysam (0.7.5-1) unstable; urgency=low
* Initial release (Closes: #738665)
#!/usr/bin/make -f
-# Hint:
-# https://wiki.debian.org/Python/LibraryStyleGuide
-# suggests:
export PYBUILD_NAME=pysam
-# which probably does not harm but due to the fact that there is
-# some additional binary package a debian/python-pysam.install
-# file is definitely needed.
DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
TESTPKG := $(DEBPKGNAME)-tests
-pybuilddir := $(CURDIR)/build/lib.$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)-$(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
%:
- dh $@ --with python2
+ dh $@ --with python2 --buildsystem=pybuild
# Cython is recreating some c-files. To enable building twice in a row these
# will be saved in advance and restored afterwards
dh_auto_build
override_dh_auto_test:
- dh_auto_test
- chmod a+x tests/pysam_test_offline.py
+ dh_auto_test # default tests
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- set -e -x;\
- for pyv in `pyversions -dv` ; do \
- cd tests && env PYTHONPATH=$(pybuilddir)-$${pyv} ./pysam_test_offline.py ; \
- done
+ PYBUILD_SYSTEM=custom \
+ PYBUILD_TEST_ARGS="cd tests && PYTHONPATH={build_dir} {interpreter} ./pysam_test_offline.py" \
+ dh_auto_test --buildsystem=pybuild
endif
override_dh_install-indep: