-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEV speed up pip install -r requirements-dev.txt
by nearly 2000%
#50295
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
Conversation
pip install -r requirements-dev.txt
by 2100%
pip install -r requirements-dev.txt
by 2100%pip install -r requirements-dev.txt
by nearly 2000%
I am slightly -1 on this. I think it is clearer that any package that we use directly is listed in the requirements (which eg was not the case for aiobotocore). This is more explicit and also more robust (in case some other package changes its dependencies). It is pip's "fault" that it cannot handle this properly. Of course, given that this makes the pip install so unusable, we can be pragmatic and help that on our side. But then I would personally limit it to removing the biggest culprits (eg just removing boto3/botocore already resolves most of it?), and keep being explicit for the others. |
OK, sure, as long as we can do that because |
4b52617
to
b7a1ec8
Compare
Agree with @jorisvandenbossche's reasoning. Would be good to keep an issue open regarding adding back boto3 and botocore if pip can more quickly resolve this in the future. Maybe also adding lower pins on all our dependencies would help the solver? |
sure, done #50300 |
…andas-dev#50295) dont explicitly list boto3 and botocore Co-authored-by: MarcoGorelli <>
Can we backport? Otherwise the docker change might take forever |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.it looks like it may not be necessary to list boto3 and botocore, and they get pulled in anyway by s3fs and moto
EDIT:
yup, this works! and we can stop listing even more unpinned dependencies!
By removing them,
pip install -r requirements-dev.txt
goes from taking over 54 minutes, to just under 3 minutes!EDIT2: only removing boto3 and botocore. Timing is still under 3 minutes 🥳