File: rules

package info (click to toggle)
python-etcd 0.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 304 kB
  • ctags: 399
  • sloc: python: 2,970; sh: 14; makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 577 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

%:
	dh $* --with python2,python3

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build/
	rm -rf src/python_etcd.egg-info

override_dh_auto_install:
	dh_auto_install
	set -ex; for python in $(shell py3versions -r); do \
		$$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
	done;
	# Install everything excluding the *_d.so debug extensions to python-etcd and python3-etcd
	dh_install -X"*_d.so" "debian/tmp/usr/lib/python2*/*-packages" -p python-etcd
	dh_install -X"*_d.so" "debian/tmp/usr/lib/python3*/*-packages" -p python3-etcd