File: rules

package info (click to toggle)
brebis 0.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 6,300 kB
  • sloc: python: 7,190; makefile: 161
file content (25 lines) | stat: -rwxr-xr-x 550 bytes parent folder | download | duplicates (3)
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 $@ --with python3 --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

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