Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=mutagen
4
5 # This is generally a good idea to avoid littering the filesystem with unneeded
6 # pyc files, but it is also specifically needed to avoid byte-compilation of
7 # the binaries in tools/ when the test suite is run.
8 export PYTHONDONTWRITEBYTECODE=yes
9
10 # Set UTF-8 locale as the tests expect this
11 export LC_ALL=C.UTF-8
12
13 export PYBUILD_TEST_ARGS=-m 'not quality'
14
15 %:
16 dh $@ --buildsystem=pybuild
17
18 execute_after_dh_auto_build:
19 ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
20 PYTHONPATH=. \
21 http_proxy='127.0.0.1:9' \
22 https_proxy='127.0.0.1:9' \
23 python3 -m sphinx -N -b html docs/ $(CURDIR)/.pybuild/docs/html/
24 $(MAKE) -C docs/man
25 endif
26
27
28 override_dh_installchangelogs:
29 dh_installchangelogs NEWS
30
31
32 execute_after_dh_clean:
33 rm -rf docs/man/_man