blob: e65c96510a444a97837990475d75056d15c19f90 (
plain)
1 # Description: Python Build Reasonableness
2 # URL: https://pypi.python.org/pypi/pbr
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: python3-setuptools
5
6 name=python3-pbr
7 version=5.11.1
8 release=1
9 source=(https://pypi.org/packages/source/p/pbr/pbr-$version.tar.gz)
10
11 build() {
12 cd pbr-$version
13 sed -i 's/virtualenv.create_environment(path, clear=True)/virtualenv.cli_run([path, "--clear"])/' pbr/tests/test_packaging.py
14 find . -name \*.py -exec sed -i '1s/python$/&3/' {} +
15 /usr/bin/python3 setup.py build
16 /usr/bin/python3 setup.py install --prefix=/usr \
17 --root=$PKG \
18 --skip-build \
19 -O1
20
21 find $PKG -iname "*README*" -delete
22 }
|