#!/usr/bin/make -f UPSTREAM_GIT := https://github.com/haypo/trollius.git include /usr/share/openstack-pkg-tools/pkgos.make %: dh $@ --buildsystem=python_distutils --with python2,python3 override_dh_auto_install: set -e && for pyvers in $(PYTHONS); do \ python$$pyvers setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python-trollius; \ done ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) override_dh_auto_test: set -e ; set -x ; for i in 2.7 ; do \ PYMAJOR=`echo $$i | cut -d'.' -f1` ; \ echo "===> Testing with python$$i (python$$PYMAJOR)" ; \ PYTHON=$$i python$$i -Wd runtests.py -r ; \ done endif