| 1 |
|
| 2 |
|
| 3 |
export PYBUILD_NAMEscip-debian debian pydispatcher 2.0.7-2 pydispatcher/rules/PYBUILD_NAME.=pydispatch |
| 4 |
ifeq (,$(PYBUILD_AUTOPKGTESTscip-debian debian pydispatcher 2.0.7-2 pydispatcher/rules/PYBUILD_AUTOPKGTEST.)) |
| 5 |
|
| 6 |
export PYBUILD_TEST_ARGSscip-debian debian pydispatcher 2.0.7-2 pydispatcher/rules/PYBUILD_TEST_ARGS.=--deselect tests/test_packaging.py::PackagingTest::test_package_metadata |
| 7 |
endif |
| 8 |
|
| 9 |
%scip-debian debian pydispatcher 2.0.7-2 pydispatcher/rules/`%`().: |
| 10 |
dh $@ --buildsystem=pybuild |
| 11 |
|
| 12 |
execute_before_dh_installdocsscip-debian debian pydispatcher 2.0.7-2 pydispatcher/rules/execute_before_dh_installdocs().: |
| 13 |
cd docs/pydoc && PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=../.. python3 ./builddocs.py |
| 14 |
find docs/pydoc -type f -name '*.html' -print0 | xargs -0r sed -i -e 's@<br><a href="file:.*</a>@@g' |
| 15 |
|
| 16 |
execute_before_dh_installexamplesscip-debian debian pydispatcher 2.0.7-2 pydispatcher/rules/execute_before_dh_installexamples().: |
| 17 |
chmod 0644 examples/*py |