diff options
-rw-r--r-- | python/python3-pydantic-core/python3-pydantic-core.SlackBuild | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/python3-pydantic-core/python3-pydantic-core.SlackBuild b/python/python3-pydantic-core/python3-pydantic-core.SlackBuild index 84286f5e1f1d6..2f7571e21c6db 100644 --- a/python/python3-pydantic-core/python3-pydantic-core.SlackBuild +++ b/python/python3-pydantic-core/python3-pydantic-core.SlackBuild @@ -102,7 +102,8 @@ else export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH" fi -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/ python3 -m build --no-isolation python3 -m installer -d "$PKG" dist/*.whl |