academic/python3-scipy: Fix for upgraded python3-mesonpy.

With the go ahead from Jeremy.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
fourtysixandtwo 2023-12-21 10:03:27 -07:00 committed by Willy Sudiarto Raharjo
parent 77165ea295
commit b125aad7d4
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -68,14 +68,17 @@ chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
-o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# Allow our version of pybind11 and numpy to work
sed -i 's|<2.11.1|<=2.11.1|' pyproject.toml
sed -i 's|numpy==1.21.6|numpy>=1.21.6|' pyproject.toml
# Remove upper limit for meson-python
sed -i '/meson-python>/ {s/,<0.15.0//}' pyproject.toml
# needs newer meson
export PYTHONPATH=/opt/python3.9/site-packages/