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 PYBUILD_NAME=macholib
export http_proxy = http://127.0.0.1:9
export https_proxy = https://127.0.0.1:9
%:
dh $@ --buildsystem=pybuild --with python2,python3,sphinxdoc
override_dh_auto_build:
dh_auto_build
python3 -m sphinx -bhtml doc build/html
override_dh_clean:
dh_clean
rm -rf $(CURDIR)/*.egg-info/
rm -rf $(CURDIR)/build
override_dh_auto_install:
dh_auto_install
find debian/python-macholib-doc -name license.txt -delete
#remove deprecated binaries
for f in dump find standalone; do rm debian/python*-macholib/usr/bin/macho_$$f; done
rmdir --ignore-fail-on-non-empty --parents debian/python*-macholib/usr/bin
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
python3 setup.py egg_info
dh_auto_test -- --system=custom --test-args='{interpreter} -m unittest discover -v'
endif
|