Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- coding: utf-8 -*-
3
4 #export DH_VERBOSE=1
5
6 PY3VERSIONSscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/PY3VERSIONS. = $(shellscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/shell. py3versions -vr)
7
8 %scip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/`%`().:
9 dh $@ --with python3,sphinxdoc --buildsystem=pybuild
10
11 override_dh_auto_buildscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/override_dh_auto_build().:
12 dh_auto_buildscip-debian debian debhelper . dh_auto_build().
13
14 set -e; for version in $(PY3VERSIONSscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/PY3VERSIONS.); do \
15 python$$version setup.py build; \
16 done
17
18 $(MAKEscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/MAKE.) -C docs html
19
20 override_dh_auto_testscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/override_dh_auto_test().:
21 ifeq (,$(filterscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/filter. nocheck,$(DEB_BUILD_OPTIONSscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/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_installchangelogsscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/override_dh_installchangelogs().:
26 dh_installchangelogsscip-debian debian debhelper . dh_installchangelogs().
27 # install the upstream changelog at the right place in the doc package
28 dh_installchangelogsscip-debian debian debhelper . dh_installchangelogs(). -ppython-simpy-doc docs/source/Manuals/HISTORY.rst
29
30 override_dh_compressscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/override_dh_compress().:
31 dh_compressscip-debian debian debhelper . dh_compress(). -X.py -X.txt
32
33 override_dh_auto_installscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/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_installscip-debian debian debhelper . dh_auto_install().
38
39 set -e; for version in $(PY3VERSIONSscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/PY3VERSIONS.); do \
40 python$$version setup.py install --no-compile -O0 --install-layout=deb --root $(CURDIRscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/CURDIR.)/debian/tmp; \
41 done
42
43 override_dh_auto_cleanscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/override_dh_auto_clean().:
44 dh_auto_cleanscip-debian debian debhelper . dh_auto_clean().
45
46 set -e; for version in $(PY3VERSIONSscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/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_python3scip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/override_dh_python3().:
55 dh_python3scip-debian debian debhelper . dh_python3().
56
57 mkdir -p $(CURDIRscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/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 $(CURDIRscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/CURDIR.)/debian/python3-simpy/usr/lib/python3/dist-packages/SimPy/$$guifile $(CURDIRscip-debian debian python-simpy 2.3.1+dfsg-6 python-simpy/rules/CURDIR.)/debian/python-simpy-gui/usr/lib/python3/dist-packages/SimPy/ ; \
60 done