python/python3-filelock: Fix setuptools-scm pretend version

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Isaac Yu 2023-03-13 17:38:18 -07:00 committed by Willy Sudiarto Raharjo
parent eadf33a811
commit 7e411b155d
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-filelock PRGNAM=python3-filelock
VERSION=${VERSION:-3.9.0} VERSION=${VERSION:-3.9.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -78,7 +78,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
export SETUPTOOLS_SCM_PRETEND_VERSION=6.3.2 export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION
python3 -m build --no-isolation python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl python3 -m installer -d "$PKG" dist/*.whl