#! /usr/bin/make -f

# export HOME=$(CURDIR)/fakehome
export PYBUILD_NAME=irods
export PYBUILD_AFTER_INSTALL=rm -fr {destdir}/usr/lib/python3*/dist-packages/python_irodsclient-*  \
	                     rm -fr {destdir}/usr/lib/python3*/dist-packages/build  \
			     rm -fr {destdir}/usr/lib/python3*/dist-packages/irods/test

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:

# Can't test without access to an irods instance,
# and the irods server is not yet in Debian
# override_dh_auto_test:
# ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# 	mkdir -p $(CURDIR)/fakehome/.irods
# 	PYBUILD_SYSTEM=custom dh_auto_test
# 	rm -Rf $(CURDIR)/fakehome
# endif
