-
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
Rename pip._internal.distributions.{source -> sdist} #7621
Rename pip._internal.distributions.{source -> sdist} #7621
Conversation
Certain environments seem to be leaving behind empty folders in this directory -- There was an older pip release that included a source/ folder here which isn't getting deleted for some reason. I have not figured out the root cause why this happens yet. This is resulting in ImportErrors since Python imports have a higher precedence for packages compared to modules. This commit changes the name we're trying to import from, which should help prevent this mode of failure.
Ah great. that our own CI pipelines are affected by it. This is gonna be one fun release to make. |
@pradyunsg are there downsides to pulling 20.0 of PyPI until 20.0.1 is ready? |
Yea, that'll cause different kinds of breakages. We really need the ability to yank releases on PyPI -- pypi/warehouse#5838 -- for things like this. For now, I'm just admin-merging this and making the release. |
perhaps the "pip._internal" package name should be renamed each release? eg "pip._internal_020_000_000" and "pip._internal_019_003_001" |
This comment has been minimized.
This comment has been minimized.
You should probably discuss that here: pypi/warehouse#5838 |
@pradyunsg I want to thank you for the very quick handling of this issue. Much appreciated 🥇 |
fwiw it must be something where code is cached, because after installing 20.0.1, I have
|
Thanks for the fix 😃 |
Thnx for the fix. Much appreciated |
Yep -- circa pypa/wheel#147. We'll be fixing our release process automation to prevent this kind of failure from ever happening again: #7624. |
Thanks for the fix. |
Thank you for the fix |
This comment has been minimized.
This comment has been minimized.
- enable upgrading - enable specifying version for installing or upgrading - install bash and zsh completion scripts - get bitten by pypa/pip#7621 when extending tests - silence command -v output - use wget -P
Certain environments seem to be leaving behind empty folders in this
directory -- There was an older pip release that included a source/
folder here which isn't getting deleted for some reason (or that's getting added
somehow). I have not figured out the root cause why this happens yet. This is
resulting in ImportErrors since Python imports have a higher precedence for
packages compared to modules.
This PR changes the name we're trying to import from, which should
help prevent this mode of failure.
Should help with #7217.