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
|
#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_NAME=djvu
export PYBUILD_TEST_CUSTOM=1
export PYBUILD_TEST_ARGS=\
cd {build_dir}/tests; \
env -u LANGUAGE {interpreter} -m pytest -v
%:
ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
dh $@ --buildsystem=pybuild
else
dh $@ --with sphinxdoc --buildsystem=pybuild
endif
override_dh_installdocs:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
python3 setup.py build_ext -i
PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -b html doc/api build/sphinx/html
endif
dh_installdocs -Xobjects.inv
override_dh_strip:
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
dh_strip -ppython3-djvu
endif
|