Skip to content

Commit

Permalink
Compile pyproj from source.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Jul 6, 2022
1 parent 391a944 commit 80c57ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/Dockerfile
Expand Up @@ -20,9 +20,9 @@ RUN apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-change-held-packages --fix-missing --no-install-recommends \
git \
libpq-dev libudunits2-dev \
libpq-dev libudunits2-dev libproj-dev \
python3-dev python3-distutils python3-pip \
python3-numpy python3-rasterio python3-pyproj \
python3-numpy python3-rasterio \
build-essential \
postgresql \
redis-server \
Expand All @@ -43,9 +43,9 @@ COPY docker/constraints.txt docker/nobinary.txt /conf/
RUN python3 -m pip install --upgrade pip

# Pre-release version of Cython required for some packages to build and install correctly
RUN python3 -m pip install cython==3.0.0.a10
RUN python3 -m pip install cython==0.29.27
# Pyproj requires a no-binary install
# RUN python3 -m pip install --no-use-pep517 --no-binary ':all:' pyproj
RUN python3 -m pip install --no-use-pep517 --no-binary ':all:' pyproj==3.3.0

RUN python3 -m pip list

Expand Down
4 changes: 4 additions & 0 deletions docker/constraints.in
@@ -1,3 +1,6 @@
# New cython required to build pyproj, numpy and rasterio successfully
cython>=0.29.27

# datacube dependencies
Sphinx
affine
Expand Down Expand Up @@ -25,6 +28,7 @@ pylint
pyproj==3.3.0
python-dateutil
pyyaml
# Rasterio 1.2.x doesn't install in Python 3.10
rasterio>=1.2.4
recommonmark
redis
Expand Down
2 changes: 2 additions & 0 deletions docker/constraints.txt
Expand Up @@ -97,6 +97,8 @@ cryptography==37.0.2
# secretstorage
cycler==0.11.0
# via matplotlib
cython==0.29.27
# via -r constraints.in
dask==2022.6.1
# via
# -r constraints.in
Expand Down

0 comments on commit 80c57ec

Please sign in to comment.