From d9c14ef2a5aa70efe579a5d4e81cc8670e7ad2f0 Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Sun, 31 Mar 2024 11:33:41 -0600 Subject: [PATCH] python/cppy: Fix PYTHONPATH. Signed-off-by: Willy Sudiarto Raharjo --- python/cppy/cppy.SlackBuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/cppy/cppy.SlackBuild b/python/cppy/cppy.SlackBuild index bc15f9148a..db7be8704a 100644 --- a/python/cppy/cppy.SlackBuild +++ b/python/cppy/cppy.SlackBuild @@ -66,7 +66,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/ python3 setup.py install --root $PKG