aboutsummaryrefslogtreecommitdiff
path: root/python/python3-propcache/python3-propcache.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-propcache/python3-propcache.SlackBuild')
-rw-r--r--python/python3-propcache/python3-propcache.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/python/python3-propcache/python3-propcache.SlackBuild b/python/python3-propcache/python3-propcache.SlackBuild
index 85dfb645f3..38d864797a 100644
--- a/python/python3-propcache/python3-propcache.SlackBuild
+++ b/python/python3-propcache/python3-propcache.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python3-propcache
-# Copyright 2024 by Jay Lanagan (j@lngn.net), Detroit, MI, USA.
+# Copyright 2024-2025 by Jay Lanagan (j@lngn.net), Detroit, MI, USA.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
SRCNAM=propcache
PRGNAM=python3-propcache
-VERSION=${VERSION:-0.2.1}
+VERSION=${VERSION:-0.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -64,6 +64,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 {} \;
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH="/opt/python$PYVER/site-packages:/opt/cython/python$PYVER/site-packages"
+export PATH="/opt/cython/bin:$PATH"
+
python3 -m build --wheel --no-isolation
python3 -m installer --destdir=$PKG dist/*.whl