question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slim down dependencies

See original GitHub issue

I 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:open
  • Created 4 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
knaaptimecommented, Mar 3, 2020

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?

0reactions
jorisvandenbosschecommented, Feb 21, 2022

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, …)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found