#!/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=jack export SETUPTOOLS_SCM_PRETEND_VERSION:=$(shell dpkg-parsechangelog -S version | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/~/.0+/g') %: dh $@ --with=python3 --buildsystem=pybuild override_dh_auto_build: @echo "jack version for setuptools-scm: $(SETUPTOOLS_SCM_PRETEND_VERSION)" python3 -c 'import os; from packaging.version import Version; Version(os.environ["SETUPTOOLS_SCM_PRETEND_VERSION"])' dh_auto_build