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
# -*- makefile -*-
export DH_VERBOSE = 1
export PYBUILD_NAME = pydicom
PYS = $(shell pyversions -r)
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
# Copy the test package, as it is inside the root package (pydicom/tests).
export PYBUILD_BEFORE_TEST=cp -r {dir}/pydicom/tests {build_dir}/pydicom
# Cleanup the test package after dh_auto_test has run
export PYBUILD_AFTER_TEST=rm -r {build_dir}/pydicom/tests
%:
dh $@ --buildsystem=pybuild --with python3,sphinxdoc
override_dh_auto_build:
dh_auto_build
cd doc; PYTHONPATH=.. python3 /usr/bin/sphinx-build -N -bhtml . build/html
override_dh_auto_test:
override_dh_auto_install:
-find -name __pycache__ | xargs rm -r
dh_auto_install
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
dh_auto_test
endif
override_dh_clean:
dh_clean
rm -rf .pydistutils.cfg build
override_dh_fixperms:
dh_fixperms
find debian -name "*.dcm" -exec chmod -x \{\} \;
|