academic/python3-scipy: Fix PYTHONPATH.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
fourtysixandtwo 2024-04-03 22:43:14 -06:00 committed by Willy Sudiarto Raharjo
parent 25eeabe5ec
commit 34bd13ef51
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -78,7 +78,8 @@ sed -i 's|numpy==1.23.2|numpy>=1.23.2|' pyproject.toml
sed -i 's|pythran>=0.15.0,<0.16.0|pythran|' pyproject.toml
# needs newer meson
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