You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been using pandas as part of a project running on AWS lambda, which means we need it installed as a layer, and layers need to have a total size (when zipped) of 50MB. This is tricky with libraries like pandas which are pretty big (installed size for me is 41 MB by itself, although it compresses to less).
There are existing layers for pandas which we've been using, but recently I looked into getting all of our dependencies into a single layer that we generated ourselves. When I looked into it I was surprised to find a lot of space in pandas is from the tests: 17 MB, so nearly half, is in pandas/tests.
Describe the solution you'd like
The feature request is to add some logic to setup.py to make the tests an optional installation, which will save a lot of space for applications that need it.
API breaking implications
This shouldn't break the API unless tests are being imported/used in the main code (I certainly hope they aren't)
Describe alternatives you've considered
I can manually remove the tests when I package up the layer, as can anyone else who wants to save the space, but it'd be nice if this was a simple option.
The text was updated successfully, but these errors were encountered:
We've been using pandas as part of a project running on AWS lambda, which means we need it installed as a layer, and layers need to have a total size (when zipped) of 50MB. This is tricky with libraries like pandas which are pretty big (installed size for me is 41 MB by itself, although it compresses to less).
There are existing layers for pandas which we've been using, but recently I looked into getting all of our dependencies into a single layer that we generated ourselves. When I looked into it I was surprised to find a lot of space in pandas is from the tests: 17 MB, so nearly half, is in
pandas/tests
.Describe the solution you'd like
The feature request is to add some logic to
setup.py
to make the tests an optional installation, which will save a lot of space for applications that need it.API breaking implications
This shouldn't break the API unless tests are being imported/used in the main code (I certainly hope they aren't)
Describe alternatives you've considered
I can manually remove the tests when I package up the layer, as can anyone else who wants to save the space, but it'd be nice if this was a simple option.
The text was updated successfully, but these errors were encountered: