summaryrefslogtreecommitdiffstats
path: root/system/locust
diff options
context:
space:
mode:
author Christoph Willing2023-08-24 03:35:17 +0200
committer Willy Sudiarto Raharjo2023-08-26 14:07:10 +0200
commit18a323d551822858b8de9d360e92edc906007220 (patch)
tree3b2e5fbc6f49083f1d019722b44758a4c2c6bca5 /system/locust
parent9ef26eb6ec29930335ea0acb4871f357a9af79f4 (diff)
downloadslackbuilds-18a323d551822858b8de9d360e92edc906007220.tar.gz
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>
Diffstat (limited to 'system/locust')
-rw-r--r--system/locust/locust.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/locust/locust.SlackBuild b/system/locust/locust.SlackBuild
index db2c6dff47..bb869c6016 100644
--- a/system/locust/locust.SlackBuild
+++ b/system/locust/locust.SlackBuild
@@ -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