Fix building under wheezy

The supported wheezy platform we are now adding
pyca to.  Additionally, the options were wrong for
such old debian build utilites.

Change-Id: If92de1356cd45c5f4a260b6df72144dbbfe70c3d
This commit is contained in:
Jarrod Johnson 2020-02-20 08:58:24 -05:00
parent c180933281
commit 04b2d5cd69
1 changed files with 1 additions and 3 deletions

View File

@ -6,11 +6,9 @@ cd /tmp/pyghmi
export PYEXEC=python3
export DSCARGS="--with-python2=True --with-python3=True"
if grep wheezy /etc/os-release; then
# wheezy is difficult on pyca, use cryptodomex for that platform
patch -p1 < wheezy.patch
# also it's old, use python2 instead of python3
export PYEXEC=python
export DSCARGS="--with-python2=True --with-python3=False"
export DSCARGS=""
fi
# If not PBR, use the setup.py.tmpl
$PYEXEC -c 'import pbr' || ./makesetup