File: rules

package info (click to toggle)
python-httplib2 0.7.4-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 756 kB
  • sloc: python: 4,832; makefile: 17
file content (22 lines) | stat: -rwxr-xr-x 519 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
#!/usr/bin/make -f

%:
	dh $@ --with python2

override_dh_auto_clean:
	rm -fr build
	dh_auto_clean

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

override_dh_python2:
	dh_python2 -ppython-httplib2
	dh_python3 -ppython3-httplib2