aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2024-04-07 12:02:36 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-13 22:04:05 +0700
commit2fba54a8b90e0087ca19baa7d21788e71a9cf5d5 (patch)
treea6e6c54d83b8e16f662c6ad0e761e0e18662604c /python
parentdb014aedb7e303fb99d5eb15e3f6b63c12121d95 (diff)
python/python3-validators: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/python3-validators/python3-validators.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/python3-validators/python3-validators.SlackBuild b/python/python3-validators/python3-validators.SlackBuild
index 201533021c89..8838d682fbcc 100644
--- a/python/python3-validators/python3-validators.SlackBuild
+++ b/python/python3-validators/python3-validators.SlackBuild
@@ -65,7 +65,8 @@ find -L . \
# Use newer, non-stock setuptools due to package requirements
# Requres python/python3-setuptools-opt build-time dependency
-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
# Add unused section to avoid ERROR message from setuptools_scm
# Make it an if statement just in case upstream decides to update