Repository navigation
Conversation
|
Thanks for this @clbarnes . I like the way you restructured the Note: We used to call backends formats, but backends draws a more clear distinction between what is a way to represent images (format), what is an addon to imageio (plugin), and what is an external thing that drives a plugin (backend)). |
I think they are in the same direction, but can happily coexist. Extras are flexible enough that we could even group the extras (potentially with some namespacing); some could refer directly to plugins, then the use case extras could sit on top and refer to those plugin extras.
Sure, I'll change the name of that extra! Although then the "fits" -> "astropy" mapping is a little confusing. I also considered an "everything-but-gdal" extra because I can never install the damn thing 🙄 |
That's true. Would it be cleaner to name the
This is another aspect I am thinking about regarding a "all"/"formats"/"plugins"/"backends" target in the extra requirements. Some people, e.g., those using pypy, may not be able to use all backends that are compatible with imageio due to platform constraints. On the other hand |
Sounds good to me!
A few libraries (trimesh springs to mind), have an "easy" extra which installs all of the packages it expects to be easily installable; maybe that's the way. Users can always specify multiple individual extras to get around it so long as they're well documented. People using non-CPython distributions are likely to know enough about the limitations of those distributions to be able to work around but we could always drop a line into the readme about it. I think you're right that dynamically detecting which libraries are likely to be easy to install would be surprising behaviour, not to mention a headache to maintain, especially as more compiled libraries are (should be) transitioning to PEP518 build systems. |
|
Awesome! I'll raise issues and self assign them for when I get round to it. I'll close this for the moment too as quite a lot will have changed under the hood. |
This was initially going to be a prelude to adding more formats which require their own dependencies (
scipyandhdf5for .mat files,hdf5for hdf5 files,zarrfor zarr and N5 arrays), but from #574 it looks like the plugin system is being overhauled so I may hold off on those.