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
|
#!/usr/bin/make -f
export PYBUILD_NAME=qtconsole
export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/bin/
%:
dh $@ --buildsystem=pybuild
execute_after_dh_clean:
rm -rf docs/build
# Some of the tests break if certain other packages are installed.
# So we reserve the test suite for autopkgtest, which uses a
# controlled environment, rather than trying to identify a possibly-long
# list of packages to name in Build-Conflicts.
override_dh_auto_test:
execute_after_dh_auto_install:
# install scripts into jupyter-qtconsole
python3 setup.py install_scripts -d debian/jupyter-qtconsole/usr/bin
execute_before_dh_installexamples:
chmod a-x examples/*
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_build:
cd docs && PYTHONPATH=$(CURDIR) $(MAKE) html
execute_after_dh_installdocs:
dh_installdocs -p python-qtconsole-doc docs/build/html --doc-main-package=python3-qtconsole
endif
|