#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=pipenv
export PYBUILD_DISABLE=test
export DESTDIR=debian/pipenv

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

override_dh_auto_install:
	dh_auto_install
	# Remove docs/, installed in /usr/share/doc/pipenv
	rm -R $(DESTDIR)/usr/lib/python*/dist-packages/docs
	# Remove vendor license and readme files
	find debian/pipenv/usr/lib/python*/dist-packages/pipenv* -type f \( -iname "license*" -o -iname "*copying*" -o -iname "vendor.txt" -o -iname "patched.txt" -o -iname "top_level.txt" -o -name "README.*" \) -exec rm -v {} \;
