diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2024-04-07 12:02:36 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-04-13 22:04:05 +0700 |
commit | 2fba54a8b90e0087ca19baa7d21788e71a9cf5d5 (patch) | |
tree | a6e6c54d83b8e16f662c6ad0e761e0e18662604c /python | |
parent | db014aedb7e303fb99d5eb15e3f6b63c12121d95 (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.SlackBuild | 3 |
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 |