Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/python-numpy
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2024-05-08 11:13:31 +0300
committerTasos Sahanidis <tasos@tasossah.com>2024-05-08 11:13:31 +0300
commit62f096b43d0070d4965b7cb5a18b4a1be6c3c7f4 (patch)
treef752894d097000ce2aa37e8e220c537c827df46d /extra/python-numpy
parenta4f80fce174b4691fc49d30708171686d3d202c3 (diff)
extra/python-numpy: Fix SSE patching and relax meson-python requirement
Diffstat (limited to 'extra/python-numpy')
-rw-r--r--extra/python-numpy/PKGBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/extra/python-numpy/PKGBUILD b/extra/python-numpy/PKGBUILD
index 6e15ddae..b760a5ae 100644
--- a/extra/python-numpy/PKGBUILD
+++ b/extra/python-numpy/PKGBUILD
@@ -3,15 +3,20 @@ if [ "${CARCH}" = "i486" -o "${CARCH}" = "i686" ]; then
eval "$(
declare -f build | \
sed '
- s|python setup.py build|python setup.py build --cpu-baseline=NONE --cpu-dispatch=NONE|
+ s|python -m build|python -m build -Csetup-args=-Dcpu-baseline=NONE -Csetup-args=-Dcpu-dispatch=NONE|
'
)"
fi
+
if [ "${CARCH}" = "pentium4" ]; then
eval "$(
declare -f build | \
sed '
- s|python setup.py build|python setup.py build --cpu-baseline=NONE --cpu-dispatch=SSE,SSE2|
+ s|python -m build|python -m build -Csetup-args=-Dcpu-baseline=NONE -Csetup-args=-Dcpu-dispatch=SSE,SSE2|
'
)"
fi
+
+prepare() {
+ sed -i 's@meson-python>=0.15.0,<0.16.0@meson-python>=0.15.0@' numpy-$pkgver/pyproject.toml || true
+}