summaryrefslogtreecommitdiff
path: root/extra/python-numpy/PKGBUILD
blob: 6e15ddae3355c7d58656d59aef92f4b1a0527db0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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 setup.py build|python setup.py build --cpu-baseline=NONE --cpu-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|
      '
  )"
fi