summaryrefslogtreecommitdiffstats
path: root/python/conda/linux_release
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2020-01-17 10:22:05 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2020-02-07 10:57:37 +0100
commit82fc179f39ed6da308b0f229769f899570a1d9ea (patch)
treed3b8b7700df4dbce65eee12649fa6af6dd8667d2 /python/conda/linux_release
parentb85922700332c8270b144d6fa80d7b08e24bf5ac (diff)
downloadastra-82fc179f39ed6da308b0f229769f899570a1d9ea.tar.gz
astra-82fc179f39ed6da308b0f229769f899570a1d9ea.tar.bz2
astra-82fc179f39ed6da308b0f229769f899570a1d9ea.tar.xz
astra-82fc179f39ed6da308b0f229769f899570a1d9ea.zip
Use numpy backward binary compatibility for conda packages
We now only build a single package built with numpy 1.11.x for numpy>=1.11,<2 . There is no guarantee that every future numpy version covered by this will be compatible with numpy 1.11, but numpy checks this internally at run-time, and should report this (noisily) when this occurs.
Diffstat (limited to 'python/conda/linux_release')
-rwxr-xr-xpython/conda/linux_release/buildenv/build.sh5
-rw-r--r--python/conda/linux_release/release.sh2
2 files changed, 3 insertions, 4 deletions
diff --git a/python/conda/linux_release/buildenv/build.sh b/python/conda/linux_release/buildenv/build.sh
index f9ac361..04e4066 100755
--- a/python/conda/linux_release/buildenv/build.sh
+++ b/python/conda/linux_release/buildenv/build.sh
@@ -13,13 +13,12 @@ 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*string:.+_)[0-9]+/\${1}$2/" astra-toolbox/python/conda/libastra/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 36 37 38; do
- conda-build -m astra-toolbox/python/conda/astra-toolbox/conda_build_config_py$i.yaml astra-toolbox/python/conda/astra-toolbox
-done
+conda-build -m astra-toolbox/python/conda/astra-toolbox/linux_build_config.yaml astra-toolbox/python/conda/astra-toolbox
cp /root/miniconda3/conda-bld/linux-64/*astra* /out
diff --git a/python/conda/linux_release/release.sh b/python/conda/linux_release/release.sh
index 26e67a3..8134b41 100644
--- a/python/conda/linux_release/release.sh
+++ b/python/conda/linux_release/release.sh
@@ -12,7 +12,7 @@ docker build -t astra-build-env buildenv
cp buildenv/build.sh $D
-docker run -v $D:/out:z astra-build-env /bin/bash /out/build.sh 1.9.9.dev1 0
+docker run -v $D:/out:z astra-build-env /bin/bash /out/build.sh 1.9.9.dev2 0
rm -f $D/build.sh