diff options
Diffstat (limited to 'python/python3-validators/python3-validators.SlackBuild')
-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 201533021c..8838d682fb 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 |