-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1732946: Vendor pip/setuptools/wheel instead of installing into v…
…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
- Loading branch information
Mitchell Hentges
committed
Nov 1, 2021
1 parent
5388497
commit 56f5ff4
Showing
587 changed files
with
207,433 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2008-2021 The pip developers (see AUTHORS.txt file) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
Metadata-Version: 2.1 | ||
Name: pip | ||
Version: 21.2.4 | ||
Summary: The PyPA recommended tool for installing Python packages. | ||
Home-page: https://pip.pypa.io/ | ||
Author: The pip developers | ||
Author-email: distutils-sig@python.org | ||
License: MIT | ||
Project-URL: Documentation, https://pip.pypa.io | ||
Project-URL: Source, https://github.com/pypa/pip | ||
Project-URL: Changelog, https://pip.pypa.io/en/stable/news/ | ||
Platform: UNKNOWN | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Topic :: Software Development :: Build Tools | ||
Classifier: Programming Language :: Python | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Programming Language :: Python :: 3 :: Only | ||
Classifier: Programming Language :: Python :: 3.6 | ||
Classifier: Programming Language :: Python :: 3.7 | ||
Classifier: Programming Language :: Python :: 3.8 | ||
Classifier: Programming Language :: Python :: 3.9 | ||
Classifier: Programming Language :: Python :: Implementation :: CPython | ||
Classifier: Programming Language :: Python :: Implementation :: PyPy | ||
Requires-Python: >=3.6 | ||
License-File: LICENSE.txt | ||
|
||
pip - The Python Package Installer | ||
================================== | ||
|
||
.. image:: https://img.shields.io/pypi/v/pip.svg | ||
:target: https://pypi.org/project/pip/ | ||
|
||
.. image:: https://readthedocs.org/projects/pip/badge/?version=latest | ||
:target: https://pip.pypa.io/en/latest | ||
|
||
pip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes. | ||
|
||
Please take a look at our documentation for how to install and use pip: | ||
|
||
* `Installation`_ | ||
* `Usage`_ | ||
|
||
We release updates regularly, with a new version every 3 months. Find more details in our documentation: | ||
|
||
* `Release notes`_ | ||
* `Release process`_ | ||
|
||
In pip 20.3, we've `made a big improvement to the heart of pip`_; `learn more`_. We want your input, so `sign up for our user experience research studies`_ to help us do it right. | ||
|
||
**Note**: pip 21.0, in January 2021, removed Python 2 support, per pip's `Python 2 support policy`_. Please migrate to Python 3. | ||
|
||
If you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms: | ||
|
||
* `Issue tracking`_ | ||
* `Discourse channel`_ | ||
* `User IRC`_ | ||
|
||
If you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms: | ||
|
||
* `GitHub page`_ | ||
* `Development documentation`_ | ||
* `Development mailing list`_ | ||
* `Development IRC`_ | ||
|
||
Code of Conduct | ||
--------------- | ||
|
||
Everyone interacting in the pip project's codebases, issue trackers, chat | ||
rooms, and mailing lists is expected to follow the `PSF Code of Conduct`_. | ||
|
||
.. _package installer: https://packaging.python.org/guides/tool-recommendations/ | ||
.. _Python Package Index: https://pypi.org | ||
.. _Installation: https://pip.pypa.io/en/stable/installation/ | ||
.. _Usage: https://pip.pypa.io/en/stable/ | ||
.. _Release notes: https://pip.pypa.io/en/stable/news.html | ||
.. _Release process: https://pip.pypa.io/en/latest/development/release-process/ | ||
.. _GitHub page: https://github.com/pypa/pip | ||
.. _Development documentation: https://pip.pypa.io/en/latest/development | ||
.. _made a big improvement to the heart of pip: https://pyfound.blogspot.com/2020/11/pip-20-3-new-resolver.html | ||
.. _learn more: https://pip.pypa.io/en/latest/user_guide/#changes-to-the-pip-dependency-resolver-in-20-3-2020 | ||
.. _sign up for our user experience research studies: https://pyfound.blogspot.com/2020/03/new-pip-resolver-to-roll-out-this-year.html | ||
.. _Python 2 support policy: https://pip.pypa.io/en/latest/development/release-process/#python-2-support | ||
.. _Issue tracking: https://github.com/pypa/pip/issues | ||
.. _Discourse channel: https://discuss.python.org/c/packaging | ||
.. _Development mailing list: https://mail.python.org/mailman3/lists/distutils-sig.python.org/ | ||
.. _User IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa | ||
.. _Development IRC: https://kiwiirc.com/nextclient/#ircs://irc.libera.chat:+6697/pypa-dev | ||
.. _PSF Code of Conduct: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md | ||
|
||
|
Oops, something went wrong.