File: rules

package info (click to toggle)
brebis 0.10-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,280 kB
  • sloc: python: 7,187; makefile: 161
file content (25 lines) | stat: -rwxr-xr-x 540 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

PYTHON3=$(shell py3versions -vr)

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_build:
	set -ex; for py in $(PYTHON3) ; do \
		python$$py setup.py build; \
	done

override_dh_auto_install:
	set -ex; for py in $(PYTHON3) ; do \
		python$$py setup.py install --skip-build \
		                            --root=$(CURDIR)/debian/tmp \
		                            --install-layout=deb; \
	done

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3

execute_after_dh_auto_clean:
	rm -rf build
	rm -rf *.egg-info