diff --git a/python/python3-pyppmd/python3-pyppmd.SlackBuild b/python/python3-pyppmd/python3-pyppmd.SlackBuild index 3800107686..d33670672a 100644 --- a/python/python3-pyppmd/python3-pyppmd.SlackBuild +++ b/python/python3-pyppmd/python3-pyppmd.SlackBuild @@ -82,7 +82,8 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -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 setup.py install --root=$PKG