diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2024-03-31 11:33:41 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-04-05 15:18:11 +0700 |
commit | d9c14ef2a5aa70efe579a5d4e81cc8670e7ad2f0 (patch) | |
tree | 508fa2e8a2797079c7a5659d93ac26c8dee8a403 | |
parent | 3637938c8fe00282a51ef93996c59cc5dc8669c7 (diff) |
python/cppy: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | python/cppy/cppy.SlackBuild | 3 |
1 files changed, 2 insertions, 1 deletions
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 |