-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
pip builds grpcio-tools from source making installation slow #12992
Comments
Wow. It's fascinating that that makes a difference. I wonder if we're structuring something wrong in our package or if it's a |
Yes, I was very surprised. Sorry I didn't have time to go deeper. I am really curious about what is the underlying reason for this. |
Looks like the slow version tries to compile grpcio-tools from source for some reason. That's why it takes so long. I don't know why pip is doing that.
|
Simply running FYI, I tried |
@mehrdada kpayson64 Are you already working on this or a PR would be useful? |
I'm not investigating this at the moment, but if you had a PR for a fix that would be great! |
@jleni I played with it a bit and it is not clear what, or if, we are doing something wrong, so I gave up, since it does not seem like a blocking issue for users (is it?). At the moment, the root cause might be an issue with |
I think I have narrowed down it to:
|
@jleni This should be fixed now that 1.8.0 is on PyPI. Please verify and let us know if it is not. |
It seems like it is not fixed completely - when using
it starts compiling it again! |
@xvzf That might be a separate problem with some |
grpci-reflection package installation freezes depending on other packages in the same command line
This can be easily reproduced by these two docker containers:
Dockerfile.fast - Container creation time ~1m 23s
Dockerfile.slow - Container creation time ~6m 28s
Timing containers build time:
The text was updated successfully, but these errors were encountered: