1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_NAME=bottleneck
export DH_ALWAYS_EXCLUDE=LICENSE
%:
dh $@ --with python3,numpy3,sphinxdoc --buildsystem=pybuild
override_dh_auto_clean:
dh_auto_clean
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
find bottleneck -type f -name "*.so" -delete
$(RM) -rf build/sphinx
endif
override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9
override_dh_auto_build:
dh_auto_build
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
python3 setup.py build_ext --inplace
PYTHONPATH=. python3 setup.py build_sphinx
endif
override_dh_installchangelogs:
dh_installchangelogs RELEASE.rst
override_dh_strip:
dh_strip --package=python3-$(PYBUILD_NAME) --dbg-package=python3-$(PYBUILD_NAME)-dbg
get-orig-source:
uscan --download-current-version --force-download --no-symlink
|