#!/usr/bin/make -f

PYTHONS:=$(shell pyversions -vr)

UPSTREAM_GIT := https://github.com/haypo/trollius.git
-include /usr/share/openstack-pkg-tools/pkgos.make

%:
	dh $@ --buildsystem=python_distutils --with python2

override_dh_install:
	python2.7 setup.py install --install-layout=deb \
		--root $(CURDIR)/debian/python-trollius; \

ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	set -e ; set -x ; PYTHON=2.7 python2.7 -Wd runtests.py -r 
endif
