Package: bcolz
Version: 1.1.0+ds1-5
Severity: important

Dear Maintainer,

Please don't use pybuild's internal paths. They did change recently and
they might change in the future, use pybuild's --print if you really
have to. See attached patch
commit e78665a2045be2ca3a31a6df747fd316a62f159c
Author: Piotr Ożarowski <pi...@debian.org>
Date:   Wed Mar 21 09:59:25 2018 +0100

    do not hardcode pybuild's internal paths

diff --git a/debian/control b/debian/control
index 4fa5101..78d2746 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.
 Uploaders: Daniel Stender <sten...@debian.org>
 Build-Depends:
  debhelper (>= 9),
- dh-python,
+ dh-python (>= 3.20180313~),
  python-all-dev,
  python3-all-dev,
  python-setuptools,
diff --git a/debian/rules b/debian/rules
index 8223ad1..dc1b667 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,8 +16,8 @@ export SETUPTOOLS_SCM_PRETEND_VERSION = $(VERSION_UPSTREAM)
 override_dh_auto_install:
 	dh_auto_install
 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
-	cp .pybuild/pythonX.Y_*/build/bcolz/carray_ext*.so bcolz/
-	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N docs/ debian/bcolz-doc/usr/share/doc/bcolz-doc/html/
+	PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3) \
+	http_proxy='127.0.0.1:9' sphinx-build -N docs/ debian/bcolz-doc/usr/share/doc/bcolz-doc/html/
 endif
 
 override_dh_installdocs:

Reply via email to