Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # The magic debhelper rule:
4 %:
5 dh $@ --buildsystem=pybuild
6
7 # export DH_VERBOSE=1
8
9 PYTHON3=$(shell py3versions -vr)
10
11
12
13 build-python%:
14 python$* setup.py build
15
16 override_dh_auto_build: $(PYTHON3:%=build-python%)
17 dh_auto_build
18
19 override_dh_auto_test:
20 @echo Disabling tests for this release
21
22 override_dh_auto_clean:
23 dh_auto_clean
24 rm -rf build
25 rm -rf *.egg-info
26
27 install-python%:
28 python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
29
30 override_dh_auto_install: $(PYTHON3:%=install-python%)
31 dh_auto_install
32 find debian -name '*.xls' -exec chmod -x {} \;
33 find debian -name '*.csv' -exec chmod -x {} \;
34 mkdir -p debian/drslib//usr/share/bash-completion/completions/
35 cp debian/drslibCompletion.bash debian/drslib//usr/share/bash-completion/completions/drslib