aboutsummaryrefslogtreecommitdiff
path: root/python/cryptography
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2024-03-31 04:19:56 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-05 15:18:07 +0700
commitd31d28e5fe7bfd5d0e2cc6d2c8618e0bf9becee8 (patch)
tree9ec6391da6229fa00d9eddfff515daea301e7b70 /python/cryptography
parent764268d8513519184823b94466a2d54b917708da (diff)
python/cryptography: Fix build on current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/cryptography')
-rw-r--r--python/cryptography/cryptography.SlackBuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/cryptography/cryptography.SlackBuild b/python/cryptography/cryptography.SlackBuild
index be7d821dd20b8..6465d1fd2b3fd 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