python/python3-validators: Fix PYTHONPATH.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
fourtysixandtwo 2024-04-07 12:02:36 -06:00 committed by Willy Sudiarto Raharjo
parent db014aedb7
commit 2fba54a8b9
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -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