-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pipenv lock breaks when pip download
is set to no-binary :all: in pip.conf
#147
Comments
adb shell getprop > sulog.txt |
So the issue here is that the Pipfile.lock has either been moved to a new environment, or the This issue is also present in Python 2 vs Python 3, in that different files are downloaded, so the hashes won't match. I'm not immediately sure if there's a better way to address this than documenting it. A given Pipfile currently needs to generate it's lock file with the same system configuration it will be run on. @kennethreitz do you have any thoughts on this? |
The issue here was specifically that the hashes for Hashes for source dists would be portable, but would require the whole |
@simonpercivall, to be clear, are you saying a system with
|
Hmm, very weird that we have different experiences here. Are you on Linux? I know that So my experience would be that a default setup does not generate portable
|
I've tried several configurations on macOS and can't generate what you're seeing. Can you please provide the following for me?
|
Hmm, I don't know if I'm just confused about what you're saying; perhaps we're actually agreeing. Note that the Let's take this as example:
this corresponds to the Python 2 whl. A If I create that
I.e.
With |
Yep, I think this seems to be a case of a few crossed wires (mostly mine) :) I now see what you were saying. My tests were showing source archives but I apparently chose packages that didn't have wheels (e.g. toml). You're correct that pip prefers wheels and will only use source archives if there's no wheel available. So I think we're back to the original conflict of Python 2 hashes vs Python 3. If you generate a For the case of We can look into documenting this behaviour. That way users that want cross version compatibility at the expense of wheels should be able to set up their |
Yes. Another alternative could be for Not using wheels makes it fully portable (and an option for |
@simonpercivall yeah, this is a question of better defaults. We could easily add Using pip.conf at least makes this toggleable, whereas hardcoding |
i think the current implementation is fine for now, wheels are excellent, and should be used when available. |
There's the word then :) I'll write up configuring a pip.conf entry @simonpercivall and I think we'll leave it there for now. |
Also thanks for your time researching this, @simonpercivall! |
Thanks for the discussion. Hopefully this situation will improve over time; for instance if |
If
pipenv
is used in an environment where thepip.conf
download
section containsno-binary = :all:
,pipenv install
will fail, because the has of the source archives doesn't match hash of the wheels.This may be something fixable, or perhaps just something that would be helpful to document.
The text was updated successfully, but these errors were encountered: