-
-
Notifications
You must be signed in to change notification settings - Fork 619
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
Reasoning behind unsafe packages #522
Comments
That was brought a while agot, by this commit: And I'll admit I'd really like to have @nvie input on this. The only reasons I could think of would be one of those:
|
I'm interested in this too. I've got two guesses:
Am I on the right track? |
Coming back on this:
For, I'll close this issue, as it seems there's not much else we can add other than guessing. If this cause any other issue in the future, we can spend the time to figure out the exact needs and impact. |
…env r=ahal Now that are prioritizing system over virtualenv site-packages, the system `pip` is sometimes being used instead. This is causing issues when the system pip is set up in a distro-specific way, such as when "debundled": https://github.com/pypa/pip/blob/9.0.1/pip/_vendor/__init__.py#L53-L61 However, if we vendor `pip`, `setuptools` and `wheel`, and ensure that they're prioritized in the `sys.path` before anything is imported from the system, then we can ensure that we're using a modern `pip` _and_ sidestep system-specific pip weirdness. Note that `pip-compile`'s `--allow-unsafe` flag is not as dangerous as it sounds. There's confusion among maintainers about its origin: jazzband/pip-tools#522 Additionally, it's going to be enabled by default in a future `pip-tools` release. So, it's not scary for us to embrace here. Also, heads up that the "pip outdated warning" no longer needs to be manually silenced, since pip avoids that code path when not running from an "installed" context. Differential Revision: https://phabricator.services.mozilla.com/D127182
…env r=ahal Now that are prioritizing system over virtualenv site-packages, the system `pip` is sometimes being used instead. This is causing issues when the system pip is set up in a distro-specific way, such as when "debundled": https://github.com/pypa/pip/blob/9.0.1/pip/_vendor/__init__.py#L53-L61 However, if we vendor `pip`, `setuptools` and `wheel`, and ensure that they're prioritized in the `sys.path` before anything is imported from the system, then we can ensure that we're using a modern `pip` _and_ sidestep system-specific pip weirdness. Note that `pip-compile`'s `--allow-unsafe` flag is not as dangerous as it sounds. There's confusion among maintainers about its origin: jazzband/pip-tools#522 Additionally, it's going to be enabled by default in a future `pip-tools` release. So, it's not scary for us to embrace here. Also, heads up that the "pip outdated warning" no longer needs to be manually silenced, since pip avoids that code path when not running from an "installed" context. Differential Revision: https://phabricator.services.mozilla.com/D127182
Why exactly is it that some packages are considered unsafe in a requirements file?
I first noticed the comment after using
pip-compile
and then found this set inpiptools/utils.py
:I tried googling for an answer but no luck.
Environment Versions
$ python -V
— 2.7.13$ pip --version
— 9.0.1$ pip-compile --version
— 1.9.0Steps to replicate
This is clearly not an actual issue but just a question :)
The text was updated successfully, but these errors were encountered: