diff options
-rw-r--r-- | python/python3-pythran/python3-pythran.SlackBuild | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/python3-pythran/python3-pythran.SlackBuild b/python/python3-pythran/python3-pythran.SlackBuild index 6c8ffe97abf14..7c5911061bdc4 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 |