Skip to content
This repository was archived by the owner on Oct 21, 2019. It is now read-only.

Commit d2f65cf

Browse files
author
Darren Weber
committed
Image bundled with cython,numpy,gdal,rasterio python bindings
- numpy >= 1.17 needs a c99 compiler setting
1 parent 3fa8e1f commit d2f65cf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,9 @@ ENV \
179179

180180
ENV PATH=$PREFIX/bin:$PATH
181181

182-
RUN pip3 install pip -U
183-
RUN pip3 install cython numpy --no-binary numpy
182+
# numpy 1.17 requires an explicit c99 compiler option
183+
# - https://github.com/numpy/numpy/pull/12783/files
184+
ENV CFLAGS='-std=c99'
185+
RUN pip3 install pip -U && \
186+
pip3 install cython numpy "gdal==${GDAL_VERSION}" rasterio --no-binary :all:
187+

0 commit comments

Comments
 (0)