summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2016-12-09 11:37:26 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2016-12-09 11:37:40 +0100
commit25f38c8ac5275ff88cc1245ab475510864543ceb (patch)
treeb801948a0d3a9ad32202760097d41b2ffad5c55d /python
parent461fd85b60165aa20c76f68e2adf4f4cd717641b (diff)
downloadastra-25f38c8ac5275ff88cc1245ab475510864543ceb.tar.gz
astra-25f38c8ac5275ff88cc1245ab475510864543ceb.tar.bz2
astra-25f38c8ac5275ff88cc1245ab475510864543ceb.tar.xz
astra-25f38c8ac5275ff88cc1245ab475510864543ceb.zip
Build conda packages for multiple conda versions
Diffstat (limited to 'python')
-rw-r--r--python/conda/linux_release/builder/Dockerfile13
-rw-r--r--python/conda/linux_release/release.sh1
2 files changed, 10 insertions, 4 deletions
diff --git a/python/conda/linux_release/builder/Dockerfile b/python/conda/linux_release/builder/Dockerfile
index d09a9d7..12bde50 100644
--- a/python/conda/linux_release/builder/Dockerfile
+++ b/python/conda/linux_release/builder/Dockerfile
@@ -1,8 +1,13 @@
FROM astra-build-env
ARG BUILD_NUMBER=
WORKDIR /root
-RUN git clone -b master https://github.com/astra-toolbox/astra-toolbox
-RUN [ -z $BUILD_NUMBER ] || perl -pi -e "s/^(\s*number:\s*)[0-9]+$/\${1}$BUILD_NUMBER/" astra-toolbox/python/conda/libastra/meta.yaml astra-toolbox/python/conda//meta.yaml
+RUN git clone --depth 1 https://github.com/astra-toolbox/astra-toolbox
+RUN [ -z $BUILD_NUMBER ] || perl -pi -e "s/^(\s*number:\s*)[0-9]+$/\${1}$BUILD_NUMBER/" astra-toolbox/python/conda/libastra/meta.yaml astra-toolbox/python/conda/meta.yaml
RUN conda-build --python=3.5 astra-toolbox/python/conda/libastra
-RUN conda-build --python=3.5 astra-toolbox/python/conda
-RUN conda-build --python=2.7 astra-toolbox/python/conda
+RUN conda-build --python 2.7 --numpy 1.8 astra-toolbox/python/conda
+RUN conda-build --python 2.7 --numpy 1.9 astra-toolbox/python/conda
+RUN conda-build --python 2.7 --numpy 1.10 astra-toolbox/python/conda
+RUN conda-build --python 2.7 --numpy 1.11 astra-toolbox/python/conda
+RUN conda-build --python 3.5 --numpy 1.9 astra-toolbox/python/conda
+RUN conda-build --python 3.5 --numpy 1.10 astra-toolbox/python/conda
+RUN conda-build --python 3.5 --numpy 1.11 astra-toolbox/python/conda
diff --git a/python/conda/linux_release/release.sh b/python/conda/linux_release/release.sh
index 35cbdd0..cf62bd5 100644
--- a/python/conda/linux_release/release.sh
+++ b/python/conda/linux_release/release.sh
@@ -6,6 +6,7 @@ D=`mktemp -d`
[ -f buildenv/Miniconda3-4.2.12-Linux-x86_64.sh ] || (cd buildenv; wget https://repo.continuum.io/miniconda/Miniconda3-4.2.12-Linux-x86_64.sh )
docker build -t astra-build-env buildenv
+#docker build --no-cache --build-arg=BUILD_NUMBER=0 -t astra-builder builder
docker build --no-cache -t astra-builder builder
docker run --name astra-build-cnt -v $D:/out:z astra-builder /bin/bash -c "cp /root/miniconda3/conda-bld/linux-64/*astra* /out"