Use pybuild to build package.
Ondřej Nový
4 years ago
2 | 2 |
[ Ondřej Nový ]
|
3 | 3 |
* d/control: Use team+openstack@tracker.debian.org as maintainer
|
4 | 4 |
* Use debhelper-compat instead of debian/compat.
|
|
5 |
* Use pybuild to build package.
|
5 | 6 |
|
6 | 7 |
[ Thomas Goirand ]
|
7 | 8 |
* Remove Mehdi and Julien from uploaders (Closes: #928573).
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
|
2 | |
PYTHONS:=$(shell pyversions -vr)
|
3 | |
PYTHON3S:=$(shell py3versions -vr)
|
|
2 |
-include /usr/share/openstack-pkg-tools/pkgos.make
|
4 | 3 |
|
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
|
6 | 8 |
|
7 | 9 |
%:
|
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
|
23 | 11 |
|
24 | 12 |
override_dh_clean:
|
25 | |
dh_clean -O--buildsystem=python_distutils
|
|
13 |
dh_clean
|
26 | 14 |
rm -rf build
|
27 | 15 |
if ! [ -d .git ] ; then \
|
28 | 16 |
rm -f proboscis.egg-info/PKG-INFO ; \
|
29 | 17 |
fi
|
30 | |
|