Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default GDAL to 3.5.0 and PROJ to 8.2.1 #38

Merged
merged 1 commit into from
May 19, 2022

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented May 19, 2022

Changes the default versions for new apps that don't set an explicit version, as follows:

  • GDAL: 2.4.0 -> 3.5.0
  • PROJ: 5.2.0 -> 8.2.1

Existing apps are not affected, since subsequent builds re-use the same version as used by the previous successful build (unless the build cache is cleared).

See here to find out more about the changes in these versions:
https://github.com/OSGeo/gdal/blob/v3.5.0/NEWS.md
https://proj.org/news.html

If any new apps using this buildpack now experience issues, either:

  • update packages that depend on these libraries (such as the Python GDAL package) to a compatible version
  • or, explicitly specify the library version to use (by setting env vars on the app; see README for more details) - and specify the versions that were the previous defaults:
    GDAL_VERSION=2.4.0
    PROJ_VERSION=5.2.0
    

Closes #20.
GUS-W-10346751.

Changes the default versions for new apps that don't set an explicit
version, as follows:
- GDAL: `2.4.0` -> `3.5.0`
- PROJ: `5.2.0` -> `8.2.1`

Existing apps are not affected, since subsequent builds re-use the same
version as used by the previous successful build (unless the build cache
is cleared).

If any new apps using this buildpack now experience issues, either:
- update packages that depend on these libraries (such as the Python `GDAL`
  package) to a compatible version
- or, explicitly specify the library version to use - and specify the versions that
  were the previous defaults:
   ```
   GDAL_VERSION=2.4.0
   PROJ_VERSION=5.2.0
   ```

Closes #20.
GUS-W-10346751.
@edmorley edmorley self-assigned this May 19, 2022
@edmorley
Copy link
Member Author

Confirmed latest GDAL Python package now works (resolving #20):

$ mkdir -p testapp-geo && cd $_ && git init && h create
$ h buildpacks:add 'https://github.com/heroku/heroku-geo-buildpack#edmorley/update-defaults'
$ h buildpacks:add heroku/python
$ echo 'GDAL' > requirements.txt
$ git add -A && git commit -m '.' && git push heroku main
...
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpacks:
remote:        1. https://github.com/heroku/heroku-geo-buildpack#edmorley/update-defaults
remote:        2. heroku/python
remote: -----> Geo Packages (GDAL/GEOS/PROJ) app detected
remote: -----> Installing GDAL-3.5.0
remote: -----> Installing GEOS-3.10.2
remote: -----> Installing PROJ-8.2.1
remote: -----> Python app detected
remote: -----> No Python version was specified. Using the buildpack default: python-3.10.4
remote:        To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing python-3.10.4
remote: -----> Installing pip 22.0.4, setuptools 60.10.0 and wheel 0.37.1
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        Collecting GDAL
remote:          Downloading GDAL-3.5.0.tar.gz (752 kB)
remote:          Preparing metadata (setup.py): started
remote:          Preparing metadata (setup.py): finished with status 'done'
remote:        Building wheels for collected packages: GDAL
remote:          Building wheel for GDAL (setup.py): started
remote:          Building wheel for GDAL (setup.py): finished with status 'done'
remote:          Created wheel for GDAL: filename=GDAL-3.5.0-cp310-cp310-linux_x86_64.whl size=3948955 sha256=28c3e2ef9968c4c32a6fff76817849f06d2444ff6f54afec327555b069e51bb4
remote:          Stored in directory: /tmp/pip-ephem-wheel-cache-7a755quk/wheels/17/dc/ba/c4602a29c4c7bad3a98bd6e565ee97eeb20096cfa3da7a2913
remote:        Successfully built GDAL
remote:        Installing collected packages: GDAL
remote:        Successfully installed GDAL-3.5.0

@edmorley edmorley marked this pull request as ready for review May 19, 2022 10:39
@edmorley edmorley merged commit e3869d0 into master May 19, 2022
@edmorley edmorley deleted the edmorley/update-defaults branch May 19, 2022 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pip installation of GDAL fails with GCC undeclared identifer errors
1 participant