summaryrefslogtreecommitdiffstats
path: root/python/conda/linux_release
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-09-25 13:55:23 +0200
committerGitHub <noreply@github.com>2019-09-25 13:55:23 +0200
commit1fec36f7ccadd5f7dcf2bb59b0654dc53653b0f3 (patch)
treed326f7936b3dec5c0d61349047516a67127da7a6 /python/conda/linux_release
parent6e9fb3ec670863b62006288cd8bba5b773530a53 (diff)
parentd621b2ceed23f4ecc945b00ffd6e859b70b89b50 (diff)
downloadastra-1fec36f7ccadd5f7dcf2bb59b0654dc53653b0f3.tar.gz
astra-1fec36f7ccadd5f7dcf2bb59b0654dc53653b0f3.tar.bz2
astra-1fec36f7ccadd5f7dcf2bb59b0654dc53653b0f3.tar.xz
astra-1fec36f7ccadd5f7dcf2bb59b0654dc53653b0f3.zip
Merge pull request #214 from ahendriksen/CI-use-conda-c-compiler-toolchain
Use conda compiler toolchain for conda builds
Diffstat (limited to 'python/conda/linux_release')
-rwxr-xr-x[-rw-r--r--]python/conda/linux_release/buildenv/build.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/python/conda/linux_release/buildenv/build.sh b/python/conda/linux_release/buildenv/build.sh
index cc6dc31..158c1d5 100644..100755
--- a/python/conda/linux_release/buildenv/build.sh
+++ b/python/conda/linux_release/buildenv/build.sh
@@ -1,16 +1,23 @@
#!/bin/sh
-export CC=gcc
-export CXX=g++
+set -e
+
+BRANCH=master
+URL=https://github.com/astra-toolbox/astra-toolbox
+
+echo "Cloning from ${URL}"
+echo " branch: ${BRANCH}"
cd /root
-git clone --depth 1 --branch master https://github.com/astra-toolbox/astra-toolbox
+git clone --depth 1 --branch ${BRANCH} ${URL}
+
[ $# -eq 0 ] || perl -pi -e "s/^(\s*version:\s*)[0-9a-z+\.']+$/\${1}'$1'/" astra-toolbox/python/conda/libastra/meta.yaml astra-toolbox/python/conda/astra-toolbox/meta.yaml
[ $# -eq 0 ] || perl -pi -e "s/^(\s*number:\s*)[0-9]+$/\${1}$2/" astra-toolbox/python/conda/libastra/meta.yaml astra-toolbox/python/conda/astra-toolbox/meta.yaml
[ $# -eq 0 ] || perl -pi -e "s/^(\s*-\s*libastra\s*==\s*)[0-9a-z+\.]+$/\${1}$1/" astra-toolbox/python/conda/astra-toolbox/meta.yaml
conda-build -m astra-toolbox/python/conda/libastra/linux_build_config.yaml astra-toolbox/python/conda/libastra
+
for i in 27 35 36 37; do
conda-build -m astra-toolbox/python/conda/astra-toolbox/conda_build_config_py$i.yaml astra-toolbox/python/conda/astra-toolbox
done