#!/usr/bin/make -f

#export DH_VERBOSE = 1
export PYBUILD_NAME=certipy-ad

%:
	dh $@

override_dh_auto_build:
	# We create a python binary since upstream has a bug causing a conflict between this package and the package "python3-certipy" from debian.
	python3 -m venv .
	./bin/pip3 install pyinstaller . --verbose
	./bin/pyinstaller Certipy.spec

override_dh_clean:
	# Clean virtualenv files
	rm -rf bin lib lib64 include share pyvenv.cfg build certipy_ad.egg-info dist
	dh_clean

override_dh_auto_test:
	# there are no tests
	# unittest tries to load all files and it fails on sspi (requires
	# specifics of Windows).
