diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2024-03-31 14:35:29 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-04-05 15:18:16 +0700 |
commit | 13dece45abf1aa3fda736d30f709fbb7b147c818 (patch) | |
tree | e581f80dff77d102e4276d67aa3d8f6772cacce7 /python | |
parent | 5475504521712f64ef73063a95bf0bec6c8f1dd5 (diff) |
python/python3-pytest: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/python3-pytest/python3-pytest.SlackBuild | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/python3-pytest/python3-pytest.SlackBuild b/python/python3-pytest/python3-pytest.SlackBuild index 325292f333942..0391443576642 100644 --- a/python/python3-pytest/python3-pytest.SlackBuild +++ b/python/python3-pytest/python3-pytest.SlackBuild @@ -67,7 +67,8 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Use newer setuptools -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 --wheel --no-isolation python3 -m installer --destdir "$PKG" dist/*.whl |