1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#!/usr/bin/make -f
export PYBUILD_NAME=pkginfo
# Let's ship pkginfo executable only in the python3 version of the package
export PYBUILD_AFTER_INSTALL_python2=rm -f {destdir}/usr/bin/pkginfo && find {destdir} -type d -empty -delete
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build --buildsystem=pybuild
python3 setup.py build_sphinx
override_dh_clean:
rm -rf *.egg-info pkginfo/tests/sneaky/src/namespaced.sneaky.egg-info
dh_clean
override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
set -e -x; \
cd pkginfo/tests/sneaky ; python setup.py egg_info ; cd ../../.. ; \
PYTHONPATH=$(CURDIR)/build/lib.* python setup.py test
cd pkginfo/tests/sneaky ; python3 setup.py egg_info ; cd ../../.. ; \
PYTHONPATH=$(CURDIR)/build/lib.* python3 setup.py test
endif
|