Codebase list python-proboscis / 463bb44
Use pybuild to build package. Ondřej Nový 4 years ago
2 changed file(s) with 8 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
22 [ Ondřej Nový ]
33 * d/control: Use team+openstack@tracker.debian.org as maintainer
44 * Use debhelper-compat instead of debian/compat.
5 * Use pybuild to build package.
56
67 [ Thomas Goirand ]
78 * Remove Mehdi and Julien from uploaders (Closes: #928573).
00 #!/usr/bin/make -f
11
2 PYTHONS:=$(shell pyversions -vr)
3 PYTHON3S:=$(shell py3versions -vr)
2 -include /usr/share/openstack-pkg-tools/pkgos.make
43
5 include /usr/share/openstack-pkg-tools/pkgos.make
4 export PYBUILD_NAME=proboscis
5 export PYBUILD_AFTER_INSTALL_python3=rm \
6 {destdir}/{install_dir}/proboscis/compatability/exceptions_2_5.py \
7 {destdir}/{install_dir}/proboscis/compatability/raise_2_x.py
68
79 %:
8 dh $@ --buildsystem=python_distutils --with python2,python3
9
10 override_dh_auto_install:
11 set -e && for pyvers in $(PYTHONS); do \
12 python$$pyvers setup.py install --install-layout=deb \
13 --root $(CURDIR)/debian/python-proboscis; \
14 done
15 set -e && for pyvers in $(PYTHON3S); do \
16 python$$pyvers setup.py install --install-layout=deb \
17 --root $(CURDIR)/debian/python3-proboscis; \
18 rm \
19 $(CURDIR)/debian/python3-proboscis/usr/lib/python3/dist-packages/proboscis/compatability/exceptions_2_5.py \
20 $(CURDIR)/debian/python3-proboscis/usr/lib/python3/dist-packages/proboscis/compatability/raise_2_x.py \
21 ; \
22 done
10 dh $@ --buildsystem=pybuild --with python3,python2
2311
2412 override_dh_clean:
25 dh_clean -O--buildsystem=python_distutils
13 dh_clean
2614 rm -rf build
2715 if ! [ -d .git ] ; then \
2816 rm -f proboscis.egg-info/PKG-INFO ; \
2917 fi
30