File: rules

package info (click to toggle)
python-stem 1.2.2-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 4,576 kB
  • sloc: python: 20,108; makefile: 126; sh: 3
file content (30 lines) | stat: -rwxr-xr-x 620 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
26
27
28
29
30
#!/usr/bin/make -f
# -*- makefile -*-
#
#  # Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PYVERS :=  python2.7
PY3VERS :=  $(shell py3versions -s -d)

%:
		dh $@ --with python2,python3

override_dh_installchangelogs:
		dh_installchangelogs debian/ChangeLog

override_dh_auto_install:
	dh_auto_install
	set -ex; \
	for py in $(PYVERS); do \
	$$py setup.py install --root debian/python-stem \
	--install-layout=deb; \
	done; \
	for py in $(PY3VERS); do \
	$$py setup.py install --root debian/python3-stem \
	--install-layout=deb; \
	done; \
	
override_dh_auto_clean:
	dh_auto_clean -- --all
	rm -rf build