File: rules

package info (click to toggle)
python-dexml 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 196 kB
  • ctags: 454
  • sloc: python: 1,744; makefile: 21
file content (26 lines) | stat: -rwxr-xr-x 655 bytes parent folder | download | duplicates (2)
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
26
#!/usr/bin/make -f

%:
	dh $@ --with python2,python3

override_dh_auto_install:
	set -e; for pyvers in $(shell pyversions -vr); do \
		python$$pyvers setup.py install --install-layout=deb \
			--root $(CURDIR)/debian/python-dexml; \
	done
	set -e; for pyvers in $(shell py3versions -vr); do \
		python$$pyvers setup.py install --install-layout=deb \
			--root $(CURDIR)/debian/python3-dexml; \
	done

override_dh_auto_test:
	set -e; for pyvers in $(shell pyversions -vr); do \
		python$$pyvers setup.py test; \
	done
	set -e; for pyvers in $(shell py3versions -sv); do \
		python$$pyvers setup.py test; \
	done

override_dh_clean:
	dh_clean
	rm -rf build