diff options
author | fourtysixandtwo | 2024-03-31 12:19:56 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2024-04-05 10:18:07 +0200 |
commit | d31d28e5fe7bfd5d0e2cc6d2c8618e0bf9becee8 (patch) | |
tree | 9ec6391da6229fa00d9eddfff515daea301e7b70 | |
parent | 764268d8513519184823b94466a2d54b917708da (diff) | |
download | slackbuilds-d31d28e5fe7bfd5d0e2cc6d2c8618e0bf9becee8.tar.gz |
python/cryptography: Fix build on current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | python/cryptography/cryptography.SlackBuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/cryptography/cryptography.SlackBuild b/python/cryptography/cryptography.SlackBuild index be7d821dd2..6465d1fd2b 100644 --- a/python/cryptography/cryptography.SlackBuild +++ b/python/cryptography/cryptography.SlackBuild @@ -99,7 +99,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 |