#!/usr/bin/make -f %: dh $* --with python2,python3,pypy --buildsystem=python_distutils override_dh_auto_build: dh_auto_build --buildsystem=python_distutils -- --executable=/usr/bin/python pypy setup.py build --debug override_dh_auto_install: dh_auto_install set -ex; for python in $(shell py3versions -r); do \ $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \ done; pypy setup.py install --root debian/tmp --install-layout deb rm -rf debian/tmp/usr/lib/pypy/bin # Install the python2 files to python-fastimport dh_install "debian/tmp/usr/lib/python2*/*-packages" -p python-fastimport # Install the python23files to python3-fastimport dh_install "debian/tmp/usr/lib/python3*/*-packages" -p python3-fastimport # Install the pypy files to pypy-fastimport dh_install "debian/tmp/usr/lib/pypy/" -p pypy-fastimport ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) override_dh_auto_test: PYTHONPATH=. python -m unittest fastimport.tests.test_suite PYTHONPATH=. python3 -m unittest fastimport.tests.test_suite PYTHONPATH=. pypy -m unittest fastimport.tests.test_suite endif