-
Notifications
You must be signed in to change notification settings - Fork 34
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
Storing "installed extras" metadata in installations #215
Comments
Well, one could argue that that proposal will actually reduce complexity, because if extras are just packages with funny names then we can throw away most of the code for handling them :-). Of course it gets more complicated when you include transition costs. |
We discussed this at the packaging summit. @techalchemy and I will be writing a PEP for this, with (likely lots of) help from @ncoghlan and @njsmith. |
Notes from the packaging minisummit at PyCon last month (thanks to @bskinn and @crwilcox for notes I am transferring here): OverviewWhen you install a package with extra, e.g. requests with security. Pip will install these extras but nothing is saved in the metadata that those packages were installed. A few options for implementation:
njs has a proposal; PEP draft from 2015 Discussion
Action Items
|
Thanks for carrying this forward, I've had several offline conversations about this with @njsmith, @pradyunsg, @ncoghlan, and @jjhelmus (conda) that I will try to document in the near future, but I think it essentially boiled down to:
I think that captures my current understanding of the situation, feel free to jump in and correct whatever I've forgotten / left out |
As this ticket is blocked by the development of the dependency resolver (#988), I thought I would mention here that the team is looking for help from the community to move forward on that subject. We need to better understand the circumstances under which the new resolver fails, so are asking for pip users with complex dependencies to:
You can find more information and more detailed instructions here |
FTR the dependency resolver has been implemented. So I suppose this is now unblocked. |
I just wanted to link to pypa/pip#12879, which explains a use case where knowing the extras at installation time is necessary to alter the compilation of native extensions (if an extra dependency is enabled, the native code wants to link against it). Worth considering if this ever gets to the PIP stage. |
Filing an issue for discussion on https://mail.python.org/archives/list/[email protected]/thread/MDZ35APWKARAYH6I5K7K7SJM2NJ2I5P7/#KQGEPFD22X3KCYDVOPIBARKXFYZY4U2R
Relavant: @njsmith had an older proposal that covers much more ground and is more general with some additional complexity - https://mail.python.org/pipermail/distutils-sig/2015-October/027364.html
The text was updated successfully, but these errors were encountered: