summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 9e2be5b17ea3a9bf8a80ff2811c17aeb3a3dd97b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

%:
	dh $* --with python2,python3

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