-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add better dependency control to 'pip install' #1631
Comments
This is closely related to #988
I really disagree with this. Firstly, pip would need to start including knowledge about how to operate many different distro package managers, and hope to keep that up to date as it goes on. Secondly, package managers install packages on a system level; this means that pip would A) need sudo rights to install and uninstall, and B) be completely useless when pip is used with a virtual environment. Thirdly, many distro's package repositories become extremely out of date as they age. They may be missing useful major releases or minor releases or even bugfixes that had already appeared on PyPI. I wouldn't expect most distro package managers to include bugfixes from minor version updates of python packages as patches - this would quickly create a mountain of work. IMO for system software, system package managers are most appropriate. But for a large majority of programming-language-specific development, the language's package manager and database is way more appropriate than the system, and it is certainly not appropriate to use the system's in preference - you'll end up getting out-of-date releases. |
I think I disagree with how bad this would be, but I'm convinced that it's well out of scope for the real issue here. So let's drop that part from the issue. |
Closing this. I don't believe this feature to be one that we're ever going to implement. Prompting or aborting for each dependency is only going to incentivize people to use less dependencies which we're trying to improve the path around using deps, not make it more painful. |
The goal isn't to incentivize people to use fewer deps -- it's to give users and admins a chance to see and optionally control what pip does to their systems before it actually does it. Another option would be to add a dry run mode in which pip would say what it would install without actually installing it. |
If I do 'pip install whatever', there are two choices for handling dependencies, both of which I dislike:
Please add new modes:
(even better, but less important) Try to install dependencies from the distro's package manager.The text was updated successfully, but these errors were encountered: