system/locust: Set PYTHONPATH to use newer setuptools

Signed-off-by: Christoph Willing <chris.willing@linux.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Christoph Willing 2023-08-24 11:35:17 +10:00 committed by Willy Sudiarto Raharjo
parent 9ef26eb6ec
commit 18a323d551
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=locust
VERSION=${VERSION:-2.16.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -76,6 +76,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Since dependency python3-pyzmq uses a newer version of setuptools via
# python3-setuptools-opt, we need to adjust PYTHONPATH to use it here too.
export PYTHONPATH=/opt/python3.9/site-packages/
python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl