X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/37f827cf8490f291b3da732e1a213fca1daa78a1..0e5b95a8f4bf60e5cb805d25d9d202af80145734:/debian/rules diff --git a/debian/rules b/debian/rules index cec98bb..fea60f6 100755 --- a/debian/rules +++ b/debian/rules @@ -1,2 +1,13 @@ #! /usr/bin/make -f -%:; dh $@ --parallel -Bdebian/build +%:; dh $@ --parallel --with python2,python3 + +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 \ + $(foreach p,$(filter-out $(PYTHON),$(PYTHONS)), \ + OPTS-install/$p="--install-scripts=/usr/bin-$p")