#!/usr/bin/make -f
#export DH_VERBOSE=1
#export DEB_BUILD_OPTIONS=nocheck

# modules need to be by publically importable

export PYBUILD_INSTALL_ARGS=--install-scripts=/usr/share/pyomo
# see run-scripts-from-usr-share.patch

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

override_dh_auto_test:
	# TODO: get tests to run

override_dh_fixperms:
	dh_fixperms
	find $(CURDIR)/debian/pyomo/usr/share/doc/pyomo/examples -executable -type f -exec chmod 644 {} \;
