Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- coding: utf-8 -*-
3
4 #export DH_VERBOSE=1
5
6 PY3VERSIONS = $(shell py3versions -vr)
7
8 %:
9 dh $@ --with python3,sphinxdoc --buildsystem=pybuild
10
11 override_dh_auto_build:
12 dh_auto_build
13
14 set -e; for version in $(PY3VERSIONS); do \
15 python$$version setup.py build; \
16 done
17
18 $(MAKE) -C docs html
19
20 override_dh_auto_test:
21 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
22 PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -c 'import SimPy; SimPy.test()'" dh_auto_test
23 endif
24
25 override_dh_installchangelogs:
26 dh_installchangelogs
27 # install the upstream changelog at the right place in the doc package
28 dh_installchangelogs -ppython-simpy-doc docs/source/Manuals/HISTORY.rst
29
30 override_dh_compress:
31 dh_compress -X.py -X.txt
32
33 override_dh_auto_install:
34 # Replace broken shebangs with /usr/bin/python3
35 find build/ -name '*.py' -exec sed -i -e '1s|^#!.*python.*|#!/usr/bin/python3|' '{}' ';'
36
37 dh_auto_install
38
39 set -e; for version in $(PY3VERSIONS); do \
40 python$$version setup.py install --no-compile -O0 --install-layout=deb --root $(CURDIR)/debian/tmp; \
41 done
42
43 override_dh_auto_clean:
44 dh_auto_clean
45
46 set -e; for version in $(PY3VERSIONS); do \
47 python$$version setup.py clean; \
48 done
49
50 rm -rf SimPy/__pycache__/
51
52 rm -rf docs/html
53
54 override_dh_python3:
55 dh_python3
56
57 mkdir -p $(CURDIR)/debian/python-simpy-gui/usr/lib/python3/dist-packages/SimPy/
58 for guifile in GUIDebug.py SimGUI.py SimPlot.py SimulationGUIDebug.py tkconsole.py tkprogressbar.py ; do \
59 mv $(CURDIR)/debian/python3-simpy/usr/lib/python3/dist-packages/SimPy/$$guifile $(CURDIR)/debian/python-simpy-gui/usr/lib/python3/dist-packages/SimPy/ ; \
60 done