diff options
author | Christoph Willing <chris.willing@linux.com> | 2023-08-24 11:35:17 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-08-26 19:07:10 +0700 |
commit | 18a323d551822858b8de9d360e92edc906007220 (patch) | |
tree | 3b2e5fbc6f49083f1d019722b44758a4c2c6bca5 /system | |
parent | 9ef26eb6ec29930335ea0acb4871f357a9af79f4 (diff) |
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')
-rw-r--r-- | system/locust/locust.SlackBuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/system/locust/locust.SlackBuild b/system/locust/locust.SlackBuild index db2c6dff476b6..bb869c601686a 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 |