Slim down dependencies
See original GitHub issueI was chatting with @jorisvandenbossche at the dask developer meeting last week and he mentioned that gdal is only required for fiona which handles the IO parts of geopandas.
Since gdal is known to be a pain to install, it’d be nice if geopandas were split into two conda packages geopandas-core and geopandas. geopandas-core would include all the dependencies except fiona, and geopandas would include fiona, geopandas-core and all the current dependencies.
For pip installs there could be more subsets of dependencies, but the full install would be pip install geoviews[complete]
.
This pattern had been established in dask and other projects (such as geoviews).
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (11 by maintainers)
Top Results From Across the Web
Using docker slim to reduce the size of a docker image
Slimming down your container images; Trying out docker-slim; Checking out Container images. Tracking down dependencies ...
Read more >DockerSlim (docker-slim) - GitHub
DockerSlim (docker-slim): Don't change anything in your Docker container ... to navigate the option menu (which you can also do with Up and...
Read more >Five Ways to Slim Docker Images - Codacy | Blog
Slim your Docker images with these five ways which will help building environments for testing, deployment and production.
Read more >Slimming Down Your Docker Images - Towards Data Science
In this article you'll learn how to speed up your Docker build cycles and create lightweight images. Keeping with our food metaphors, ...
Read more >Strategies for slim Docker images | Unikube Blog
The next Dockerfile based on Alpine Linux technically only adds a removal of build dependencies, i.e. additionally installed packages that are ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I guess this is why i’m confused… If you have conda at your disposal, then installing gdal is trivial, no? The trouble comes from installing
fiona
from pip and handling gdal manually.so if the root of the problem is that gdal/fiona are difficult to install with pip, why is it useful to create another conda package without gdal?
To still answer this (very lately), I see two main reasons: 1) even with conda, installing gdal/fiona is still the package that can give problems from time to time (given the many c dependencies, it most easily gives channel conflicts, or some temporary error if one of the packages gets updated, or …), 2) more importantly, it gives a large install size, and if you don’t need gdal/fiona, the geopandas-base package gives you the option to get a lighter env (which can be useful in cases where size matters, eg in containers, AWS lambda, …)