#!/usr/bin/make -f

PY3VERS=$(shell py3versions -vs)

export PYBUILD_NAME=knitpy

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_clean:
	rm -fv config-stamp build-python?.* install-python?.*
	rm -fv `find . -name "*.pyc"`
	rm -rfv build *.egg-info
	dh_clean

execute_after_dh_python3:
	rm -rf debian/python3-knitpy/usr/lib/python3/dist-packages/*.egg-info

override_dh_compress:
	dh_compress -i --exclude=.js --exclude=.pdf --exclude=.py
