#!/usr/bin/make -f

MAJOR := $(shell python setup.py --version | awk -F "." '{print $$1 "." $$2}')

# Don't run tests for Tryton modules, they try to download dependencies from pypi
export PYBUILD_DISABLE_python2.7=test

%:
	dh ${@} --with python2 --buildsystem=pybuild

override_dh_install:
	dh_install
	# remove zip import script from /usr/bin, scripts are installed to docs
	rm -rf debian/tryton-modules-country/usr/bin/

override_dh_gencontrol:
	dh_gencontrol -- -Vversion:major="$(MAJOR)"
