Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=guidata
4 export GUIDATA_UNATTENDED=1
5
6 %:
7 dh $@ --with=python3 --buildsystem=pybuild
8
9 execute_before_dh_clean:
10 rm -rf build/html
11
12 execute_after_dh_auto_build:
13 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
14 env PYTHONPATH=$(shell pybuild --build -i python3 -s custom --build-args 'echo {build_dir}') \
15 SPHINXBUILD="python3 -m sphinx" \
16 SPHINXOPTS="-D mathjax_path=MathJax.js -D qt_documentation=PyQt5" \
17 sphinx-build -N -bhtml doc build/html
18 endif
19
20 execute_after_dh_auto_test:
21 # remove generated test file not removed by the upstream.
22 pybuild --build -s custom --build-args 'rm -f {build_dir}/test.json'
23
24 execute_after_dh_auto_install:
25 # install the .desktop files
26 dh_install -p python3-guidata guidata-tests.desktop /usr/share/applications