1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
export PYBUILD_NAME = ftdi
%:
dh $@ --with python3 --with sphinxdoc --buildsystem=pybuild
override_dh_auto_clean:
dh_auto_clean
rm -rf *ftdi.egg-info
override_dh_auto_test:
ifeq (,$(filter $(DEB_HOST_ARCH), s390x))
PYTHONPATH=$(CURDIR) python3 $(CURDIR)/pyftdi/tests/mockusb.py
endif
override_dh_auto_install-indep:
sphinx-build -W -b html ./pyftdi/doc ./pyftdi/doc/html
cd $(CURDIR)/pyftdi/doc/html && find . -type f -print0 | xargs -0 sed -i 's/https:\/\/fonts.googleapis.com//g'
dh_auto_install -i
|