#!/usr/bin/make -f

%:
	dh --with python3 $@

override_dh_auto_clean:
	python3 setup.py clean
	rm -rf build
	find -name __pycache__ | xargs -r rm -rf
	find -name *.pyc -exec rm -f {} \;

override_dh_auto_build:
	python3 setup.py build

override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	python3 setup.py test
endif

override_dh_auto_install:
	python3 setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-zope.fixers
