Skip to content
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

ENH: add an option to not install the tests #34300

Closed
jamestwebber opened this issue May 21, 2020 · 3 comments
Closed

ENH: add an option to not install the tests #34300

jamestwebber opened this issue May 21, 2020 · 3 comments
Labels
Build Library building on various platforms Testing pandas testing functions or related to the test suite

Comments

@jamestwebber
Copy link

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.

@jamestwebber jamestwebber added Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels May 21, 2020
@charlesdong1991
Copy link
Member

xref #30741

@charlesdong1991 charlesdong1991 added Build Library building on various platforms Testing pandas testing functions or related to the test suite and removed Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels May 21, 2020
@jamestwebber
Copy link
Author

Whoops, I searched but didn't find that issue!

@mroeschke
Copy link
Member

Thanks for the suggestion, but since this looks like a duplicate of #30741, going to close in favor of that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Testing pandas testing functions or related to the test suite
Projects
None yet
Development

No branches or pull requests

3 participants