aboutsummaryrefslogtreecommitdiff
path: root/python/python3-setuptools-rust-opt/README
diff options
context:
space:
mode:
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 168558a39ccf8..bf86a777ba734 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