#!/usr/bin/make -f

export PYBUILD_DESTDIR_python3=debian/python3-dns/

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

override_dh_auto_install:
	dh_auto_install
	find $(CURDIR)/debian/python3-dns -name win32dns.py | xargs rm -f

override_dh_auto_clean:
	dh_clean
	rm -rf $(CURDIR)/.pybuild
	rm -rf $(CURDIR)/build
	rm -rf $(CURDIR)/DNS/__pycache__

override_dh_auto_test:
	# Needs network, autopkgtest instead
