The Python Buildpack is showing a build error that the
BUILD_WITH_GEO_LIBRARIES feature is no longer supported.
The Python buildpack's legacy GEO/GDAL/PROJ feature (that was activated via the
BUILD_WITH_GEO_LIBRARIES environment variable) was deprecated in April 2020, and support has now been removed from the buildpack.
If your app requires these libraries and has not yet started using the Heroku Geo Buildpack, you will need to follow the migration steps below.
In order to continue to use the GDAL, GEOS and PROJ packages on Heroku, you can add the third-party Heroku Geo Buildpack to your application:
$ heroku buildpacks:add --index 1 https://github.com/heroku/heroku-geo-buildpack.git
Confirm that the buildpack has been added:
$ heroku buildpacks === Buildpack URLs 1. https://github.com/heroku/heroku-geo-buildpack.git 2. heroku/python
You will then need to remove the
BUILD_WITH_GEO_LIBRARIES environment variable from your application:
$ heroku config:unset BUILD_WITH_GEO_LIBRARIES
To ensure no issues on the new deploy, it is highly recommended to clear your build cache.