-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Change dependency from libgdal to gdal #49
Change dependency from libgdal to gdal #49
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
@conda-forge-admin please rerender |
…nda-forge-pinning 2024.07.26.09.08.03
@ocefpaf as described in the PR description above, we wonder if conda offers an option to depend on |
If something requests older GDAL, an older build of pyogrio would also be selected. If you want to keep that as an option for future versions, then a variant would need to be built. IMO it is not worth the effort. Even more so given that the current pyogrio will be available for both for a while if we merge this one. With that said. you are depending on Does that make sense? |
Yes. This is indeed the reason I created this PR to depend on Based on your answer, I think you agree? |
But (and that's something I forgot when we chatted about this in our meeting), pyogrio binaries are built against a specific version of GDAL anyway. So it's not actually possible to install the latest pyogrio (assume the resulting binary of this rerendering) with an older version of GDAL. |
Yes, indeed... in the corresponding rasterio issue I created (conda-forge/rasterio-feedstock#303) this also was just mentioned... I already encountered the case that with global pinning a rebuild was needed to use the latest version, but apparently the pinning is really on a specific version... |
Another point raised in the rasterio topic: maybe better to wait for the next version (0.10 for pyogrio) as it can be seen as it can break an installation, even if it is easy to solve it? |
Hello there, I am looking forward to this change being merged to slim down our environments. I see very few, if any, open issues are linked to the 0.10 milestone: is there any target release date for 0.10 and the change in feedstock? |
@olivier-lacroix indeed, we hope to release shortly. I opened an issue to track the release at geopandas/pyogrio#470 |
Thanks @jorisvandenbossche ! Looking forward to it! |
GDAL recently reorganised its conda packages as discussed in conda-forge/gdal-feedstock#722. In short: the
libgdal
package was split up in a core package,libgdal-core
, and a list of seperate packages for many GDAL plugins, to be able to avoid the (large) footprint of the entirelibgdal
. Forpyogrio
this is also very relevant, as it depends onlibgdal
and mostpyogrio
users only needlibgdal-core
.However, as
libgdal-core
only exists for GDAL 3.9.1, just depending onlibgdal-core
would mean - as far as I know - that users of future versions ofpyogrio
could only install that new version in combination with GDAL 3.9.1, not with older versions of GDAL, as for those only the fulllibgdal
package exists.Because of this, this PR at the moment "proposes" to changed the dependency to the
gdal
package. This is the GDAL package with python bindings (which aren't needed forpyogrio
), but the advantage is that for old versions of GDAL this depends onlibgdal
, but starting from GDAL 3.9.1 it depends onlibgdal-core
, so it can offer a workaround for the issue above.If conda would offer an option to depend on
libgdal-core
, but if not available (for the needed version of GDAL), fallback tolibgdal
, that would be even better.Closes #48.
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)