diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2024-03-31 11:33:44 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-04-05 15:18:14 +0700 |
commit | 88a7af59a6dfaed1d7607ad4812fcd064c0db20a (patch) | |
tree | 810f0857c08f77182e7342802c8695882243f085 /python/python3-keyring | |
parent | fe45e187ed60ad0c2ab12bfd76d437d21f3b6a60 (diff) |
python/python3-keyring: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-keyring')
-rw-r--r-- | python/python3-keyring/python3-keyring.SlackBuild | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/python3-keyring/python3-keyring.SlackBuild b/python/python3-keyring/python3-keyring.SlackBuild index 8d3d30a0b48c7..14c403ea65fbd 100644 --- a/python/python3-keyring/python3-keyring.SlackBuild +++ b/python/python3-keyring/python3-keyring.SlackBuild @@ -65,7 +65,8 @@ 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 {} \; -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 |