diff options
Diffstat (limited to 'python/python3-click-option-group/python3-click-option-group.SlackBuild')
-rw-r--r-- | python/python3-click-option-group/python3-click-option-group.SlackBuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/python/python3-click-option-group/python3-click-option-group.SlackBuild b/python/python3-click-option-group/python3-click-option-group.SlackBuild index 19535e3b4e..7c4f47ef9b 100644 --- a/python/python3-click-option-group/python3-click-option-group.SlackBuild +++ b/python/python3-click-option-group/python3-click-option-group.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-click-option-group -# Copyright 2024 Jeremy Hansen <jebrhansen+SBo@gmail.com> +# Copyright 2024-2025 Jeremy Hansen <jebrhansen+SBo@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-click-option-group -VERSION=${VERSION:-0.5.6} +VERSION=${VERSION:-0.5.7} SRCNAM=${SRCNAM:-click-option-group} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -62,6 +62,11 @@ 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 {} \; +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages + +export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION + python3 -m build --wheel --no-isolation python3 -m installer --destdir=$PKG dist/*.whl |