summaryrefslogtreecommitdiff
path: root/tools/gitpod/gitpod.Dockerfile
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2021-10-10 16:54:02 +0200
committerRalf Gommers <ralf.gommers@gmail.com>2021-10-10 16:54:02 +0200
commit2efcd96679408156683265d8a1184f7505679ec7 (patch)
tree3fa8e542d79cdb26b4cb364526c5101846facf50 /tools/gitpod/gitpod.Dockerfile
parent286e6b881e437865e4d434023038a2013bee7cf0 (diff)
downloadnumpy-2efcd96679408156683265d8a1184f7505679ec7.tar.gz
BLD: fix submodule update in gitpod.Dockerfile
This is analogous to what SciPy does.
Diffstat (limited to 'tools/gitpod/gitpod.Dockerfile')
-rw-r--r--tools/gitpod/gitpod.Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gitpod/gitpod.Dockerfile b/tools/gitpod/gitpod.Dockerfile
index 40bdd20d9..7894be5bc 100644
--- a/tools/gitpod/gitpod.Dockerfile
+++ b/tools/gitpod/gitpod.Dockerfile
@@ -8,7 +8,6 @@ COPY --chown=gitpod . /tmp/numpy_repo
# the clone should be deep enough for versioneer to work
RUN git clone --shallow-since=2021-05-22 file:////tmp/numpy_repo /tmp/numpy
-RUN git submodule update --init
# -----------------------------------------------------------------------------
# Using the numpy-dev Docker image as a base
@@ -35,6 +34,7 @@ COPY --from=clone --chown=gitpod /tmp/numpy ${WORKSPACE}
WORKDIR ${WORKSPACE}
# Build numpy to populate the cache used by ccache
+RUN git submodule update --init --depth=1 -- numpy/core/src/umath/svml
RUN conda activate ${CONDA_ENV} && \
python setup.py build_ext --inplace && \
ccache -s