Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/python-numpy/PKGBUILD
blob: b760a5aee7d88ae244ea4104df1b6e54cef3e649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# enable SSE/SSE2 on pentium4, no optimizations on i686 and i486
if [ "${CARCH}" = "i486" -o "${CARCH}" = "i686" ]; then
  eval "$(
    declare -f build | \
      sed '
        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 -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
}