-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Passing --no-cache-dir should not affect whether to use a wheel #5749
Comments
In my case, this breaks installation of a library via |
I thought it was already supposed to do this? Can you retry with the latest version of pip (19.0.3)? If it's not building a wheel, it's possible there's a separate reason for that (pip has separate logic to decide whether to build a wheel). |
I was using 19.0.3 (also tried other versions). See pip/src/pip/_internal/commands/install.py Lines 330 to 336 in 88bcb26
|
19.0.3 also doesn't create the wheel. |
See also this code which does what you suggest, but under a different scenario: pip/src/pip/_internal/wheel.py Lines 783 to 786 in 88bcb26
|
AFAICT that is only applicable to the "pep 517" path. In my case -- and I suspect the repro in the original issue -- |
Yes. Let’s keep this issue open to discuss whether the behavior should be changed. |
I see your confused emoji. What I'm saying is that instead of documenting the current behavior which is what you did in the PR #6284 that you submitted, let's instead discuss whether pip can be changed in the way that the person opening the issue first suggested:
Also, to clarify the above, the code I referenced is applicable in both the pep 517 and non-pep 517 cases in some scenarios (e.g. without |
Changing the behavior would be great. The current behavior seems contrary to the pip install documentation which states that pip runs |
For historical purposes, I found where this logic was first added: #2780 I think the “ephemeral cache” was added a lot more recently, so they didn’t have as many options to address their issue back then. |
I was hoping that specifying a specific (empty) |
FYI, I just filed PR #6303 to address this. Also, I just marked this issue as an enhancement. It's possible one could argue it's a bug, but since it's debatable IMO I chose the more forgiving option. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
At the moment the help output for
--no-cache-dir
just says:Disable the cache.
Till a week ago, I was under the impression that it meant that pip wouldn't use a cached wheel, and wouldn't cache a wheel fetched from PyPI.
What I didn't know was that when this option is enabled and a package has to be installed from an sdist, pip doesn't actually create a wheel and ends up creating egg-info directories, instead of dist-info ones.
Quick example:
In the case of '--no-cache-dir', would it not be possible for pip to still build the wheel but throw it away after installation?
The text was updated successfully, but these errors were encountered: