X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/6a8392c3473fb923ce72f26153d9aa7aa7de4e06..b2e2c7eef3e99fc9ad23e1b69020ff0fc722ba61:/debian/rules diff --git a/debian/rules b/debian/rules index f718ebd..fea60f6 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,13 @@ #! /usr/bin/make -f -%:; dh $@ --parallel --with python2 +%:; dh $@ --parallel --with python2,python3 -export PYTHONS := $(shell pyversions -r) +export PYTHON := $(shell pyversions -d) +export PYTHONS := $(shell pyversions -r && py3versions -r) + +override_dh_auto_test: + dh_auto_test -- OPTS-check=-V override_dh_auto_install: - dh_auto_install -- prefix=/usr + dh_auto_install -- prefix=/usr \ + $(foreach p,$(filter-out $(PYTHON),$(PYTHONS)), \ + OPTS-install/$p="--install-scripts=/usr/bin-$p")