aboutsummaryrefslogtreecommitdiff
path: root/python/python3-setuptools-rust-opt/README
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2024-03-30 06:16:29 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-05 15:18:07 +0700
commit2bd2be996091ce3288b7531d3ec3b349a45bb30f (patch)
treeab84cfde4b2f876822d3c7cbca941826a86e4037 /python/python3-setuptools-rust-opt/README
parent88b6637ca49d5f89cd427f7aeaf52bc843fb161a (diff)
python/python3-setuptools-rust-opt: Fix build on current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-setuptools-rust-opt/README')
-rw-r--r--python/python3-setuptools-rust-opt/README7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/python3-setuptools-rust-opt/README b/python/python3-setuptools-rust-opt/README
index 168558a39c..bf86a777ba 100644
--- a/python/python3-setuptools-rust-opt/README
+++ b/python/python3-setuptools-rust-opt/README
@@ -3,9 +3,10 @@ python3-setuptools-rust-opt (setuptools-rust installed to /opt)
setuptools-rust is a plugin for setuptools to build Rust Python
extensions implemented with PyO3 or rust-cpython.
-Installs to /opt/python3.9/site-packages
+Installs to /opt/python$PYVER/site-packages
Add the following before the python3 build commands in your
-Slackbuild to use this version over the stock one in 15.0:
+Slackbuild to use this version.:
-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