File: rules

package info (click to toggle)
python-pyknon 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 256 kB
  • ctags: 329
  • sloc: python: 2,090; makefile: 136
file content (23 lines) | stat: -rwxr-xr-x 503 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
#!/usr/bin/make -f

export PYTHONWARNINGS=d
buildvers := $(shell pyversions -rv)

%:
	dh $@ --with python2

override_dh_auto_build:
	cd docs && make html
	set -e; \
		for i in $(buildvers); do \
			python$$i setup.py build; \
		done

override_dh_auto_install:
	set -e; \
		for i in $(buildvers); do \
			python$$i ./setup.py install --skip-build --root $(CURDIR)/debian/python-pyknon --install-layout=deb; \
		done
override_dh_auto_clean:
	find . -name '*.pyc' -delete
	rm -rf build htmlcov docs/_build