diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-08-29 19:15:27 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-08-29 19:15:27 -0400 |
commit | 2448318cfe8b9633677cfc49b9ac8c8205a0b9d9 (patch) | |
tree | bc3cda6643a5f7cc3503c591dfce96d5019d6ce3 /build_cython.sh | |
parent | b6cb5c0ee28a2c216ad7883410e782d9b4a41848 (diff) | |
download | docker-buildsys-openblas-2448318cfe8b9633677cfc49b9ac8c8205a0b9d9.tar.gz |
Diffstat (limited to 'build_cython.sh')
-rwxr-xr-x | build_cython.sh | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/build_cython.sh b/build_cython.sh index 995f556..ceb7b92 100755 --- a/build_cython.sh +++ b/build_cython.sh @@ -2,24 +2,22 @@ set -e set -x +name="cython" version="0.28.5" tarball="${version}.tar.gz" -dest="cython-${version}" # Ugh. -url="http://github.com/cython/cython/archive/${tarball}" +dest="${name}-${version}" # Ugh. +url="http://github.com/cython/${name}/archive/${tarball}" export PATH_OLD="${PATH}" if [[ ! $1 ]]; then echo No argument passed. Need a version. exit 1 fi -export pylon="/opt/$1/bin" +export py_dest="/opt/$1/bin" function pre() { - export PATH="${pylon}:${PATH_OLD}" - export OPENBLAS_ROOT="/opt/OpenBLAS" - export PKG_CONFIG_PATH="${OPENBLAS_ROOT}/lib/pkgconfig:${PKG_CONFIG_PATH}" - export LDFLAGS="-Wl,-rpath=${OPENBLAS_ROOT}/lib" + export PATH="${py_dest}:${PATH_OLD}" curl -LO "${url}" tar xf "${tarball}" |