diff options
author | fourtysixandtwo | 2024-03-31 12:02:30 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2024-04-05 10:18:07 +0200 |
commit | e8da3b1b6076a6e4af65e3ec6c48368e5d2f76fd (patch) | |
tree | 44cad2317b6d35a530fd6c1ffc86a74fdfc0e6b7 | |
parent | 2bd2be996091ce3288b7531d3ec3b349a45bb30f (diff) | |
download | slackbuilds-e8da3b1b6076a6e4af65e3ec6c48368e5d2f76fd.tar.gz |
python/python3-maturin: Fix build on current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | python/python3-maturin/python3-maturin.SlackBuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/python3-maturin/python3-maturin.SlackBuild b/python/python3-maturin/python3-maturin.SlackBuild index 05fbccae88..42431d25d0 100644 --- a/python/python3-maturin/python3-maturin.SlackBuild +++ b/python/python3-maturin/python3-maturin.SlackBuild @@ -97,7 +97,9 @@ else export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH" fi -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 -d "$PKG" dist/*.whl |