summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author fourtysixandtwo2024-03-31 22:35:29 +0200
committer Willy Sudiarto Raharjo2024-04-05 10:18:16 +0200
commitb9a42e076380ebedbeb72f16a1bfefea724f7559 (patch)
tree204a90a50fc573865443b38e12b3dcb8bb9ec12c
parent13dece45abf1aa3fda736d30f709fbb7b147c818 (diff)
downloadslackbuilds-b9a42e076380ebedbeb72f16a1bfefea724f7559.tar.gz
python/python3-pythran: Fix build on current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/python3-pythran/python3-pythran.SlackBuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/python3-pythran/python3-pythran.SlackBuild b/python/python3-pythran/python3-pythran.SlackBuild
index 6c8ffe97ab..7c5911061b 100644
--- a/python/python3-pythran/python3-pythran.SlackBuild
+++ b/python/python3-pythran/python3-pythran.SlackBuild
@@ -76,7 +76,8 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Needs newer setuptools
-export PYTHONPATH=/opt/python3.9/site-packages/
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages/
python3 -m build --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl
@@ -85,7 +86,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Remove bundled boost and xsimd
-rm -r $PKG/usr/lib$LIBDIRSUFFIX/python*/site-packages/pythran/{boost,xsimd}
+rm -r $PKG/usr/lib*/python$PYVER/site-packages/pythran/{boost,xsimd}
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS Changelog README.rst $PKG/usr/doc/$PRGNAM-$VERSION