# special work around for python3 (#538978 and #597105 bugs)
PY3REQUESTED := $(shell py3versions -r)
PY3DEFAULT := $(shell py3versions -d)
PYTHON3 := $(filter-out $(PY3DEFAULT),$(PY3REQUESTED)) python3

override_dh_auto_clean:
	-rm -rf build

override_dh_auto_build:
	set -ex; for python in $(PYTHON3); do \
	    $$python setup.py build; \
	done

override_dh_auto_install:
	set -ex; for python in $(PYTHON3); do \
	    $$python setup.py install \
	        --root={}\
	        --force\
	        --install-layout=deb; \
	done

