From b352c9b517c1c2b0ed6365ab763986b8563b1b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= Date: Tue, 13 Mar 2018 20:03:55 +0100 Subject: use py3versions to get the default python3 interpreter version. --- debian/changelog | 8 ++++++++ debian/rules | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 8da49b5..81c83d7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +silx (0.7.0+dfsg-2) unstable; urgency=medium + + * d/rules + - use py3versions to get the python3 default interpreter version. + This makes the package backportable. + + -- Picca Frédéric-Emmanuel Tue, 13 Mar 2018 20:04:20 +0100 + silx (0.7.0+dfsg-1) unstable; urgency=medium * New upstream version 0.7.0+dfsg diff --git a/debian/rules b/debian/rules index 9d8b103..1f3c86d 100755 --- a/debian/rules +++ b/debian/rules @@ -13,6 +13,9 @@ rwildcard=$(wildcard $1$2) $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2)) ALL_PYX := $(call rwildcard,silx/,*.pyx) #NOTA: No space before * +# get the default python3 interpreter version +PY3VER := $(shell py3versions -dv) + %: dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild @@ -65,7 +68,7 @@ override_dh_installman: override_dh_sphinxdoc: ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) mkdir -p $(POCL_CACHE_DIR) # create POCL cachedir in order to avoid an FTBFS in sbuild - pybuild --build -s custom -p 3.6 --build-args="cd doc && env PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' {interpreter} -m sphinx -N -bhtml source build/html" + pybuild --build -s custom -p $(PY3VER) --build-args="cd doc && env PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' {interpreter} -m sphinx -N -bhtml source build/html" dh_installdocs "doc/build/html" -p python-silx-doc dh_sphinxdoc -O--buildsystem=pybuild endif -- cgit v1.2.3