File: rules

package info (click to toggle)
pydispatcher 2.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 496 kB
  • sloc: python: 1,076; makefile: 11
file content (17 lines) | stat: -rwxr-xr-x 541 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export PYBUILD_NAME=pydispatch
ifeq (,$(PYBUILD_AUTOPKGTEST))
# This test only works after installation.
export PYBUILD_TEST_ARGS=--deselect tests/test_packaging.py::PackagingTest::test_package_metadata
endif

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_installdocs:
	cd docs/pydoc && PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=../.. python3 ./builddocs.py
	find docs/pydoc -type f -name '*.html' -print0 | xargs -0r sed -i -e 's@<br><a href="file:.*</a>@@g'

execute_before_dh_installexamples:
	chmod 0644 examples/*py