diff options
author | Simone Riva | 2017-11-07 20:23:43 +0100 |
---|---|---|
committer | Simone Riva | 2017-11-07 20:23:43 +0100 |
commit | 7362560a6350b39db5a3fc6e8c64ae21ec3ef5e0 (patch) | |
tree | 7b290fbb7491ad6dcfc902cd4634dba912129d20 /build_python2.sh | |
parent | 231742f215f6aef30840f2bce1377ab2c156053b (diff) | |
download | aur-7362560a6350b39db5a3fc6e8c64ae21ec3ef5e0.tar.gz |
1.0.0-2
Diffstat (limited to 'build_python2.sh')
-rw-r--r-- | build_python2.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/build_python2.sh b/build_python2.sh new file mode 100644 index 000000000000..18cd56c87a1d --- /dev/null +++ b/build_python2.sh @@ -0,0 +1,39 @@ +#!/bin/sh +# This shell script repeats building scipy with and without an environment variable needed since newest versions of +# the intel C compiler lack support for float128 while glibc expects this. +# The set environment variable, however, precludes compiling C++ code +# So, if the build process fails, it is re-run without the environment variable und continues until failing again etc. +{ + # try the following code + python2 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem +} || { + # if that fails add environment variable + __INTEL_PRE_CFLAGS=" -D_Float128=__float128" python2 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem +} || { + #if that fails try again without + python2 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem +} || { + # if that fails add environment variable + __INTEL_PRE_CFLAGS=" -D_Float128=__float128" python2 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem +} || { + #if that fails try again without + python2 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem +} || { + # if that fails add environment variable + __INTEL_PRE_CFLAGS=" -D_Float128=__float128" python2 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem +} || { + #if that fails try again without + python2 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem +} || { + # if that fails add environment variable + __INTEL_PRE_CFLAGS=" -D_Float128=__float128" python2 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem +} || { + #if that fails try again without + python2 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem +} || { + # if that fails add environment variable + __INTEL_PRE_CFLAGS=" -D_Float128=__float128" python2 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem +} || { + #if that fails try again without + python2 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem +} |