#!/usr/bin/make -f

export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh  $@ --with python2 --buildsystem=python_distutils

# The /usr/bin/xattr CLI came from the python3 build in Debian and its binary
# package is dropped here, so remove the scripts from the module package.
override_dh_auto_install:
	dh_auto_install
	rm -rf debian/python-xattr/usr/bin

override_dh_auto_clean:
	dh_auto_clean
	rm -rf xattr.egg-info xattr/__pycache__
	find xattr -name '*.so' -delete

override_dh_auto_test:
