Commit Graph
4 Commits
Author SHA1 Message Date
Kagami Sascha Rosylight 37321ed6a3 Bug 1915242 - Upgrade setuptools to 74.0.0 r=mach-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D220347
2024-08-30 20:11:39 +00:00
ahochheiden 8e9cc40690 Bug 1857470 - Vendor setuptools at version 70.0.0 r=firefox-build-system-reviewers,mach-reviewers,sergesanspaille,ahal
Same rationale as vendoring of a recent version of `wheel`. We need it
in mozharness for `--no-use-pep517` so that we can use a recent `pip`,
so we'll update to a similar baseline to minimize issues.

Differential Revision: https://phabricator.services.mozilla.com/D211599
2024-05-27 23:06:20 +00:00
Kagami Sascha Rosylight a213fea96a Bug 1858260 - Upgrade setuptools to 68.0.0 r=sergesanspaille,mach-reviewers,ahal
68.0.0 is the last version of setuptools that still supports Python 3.7, currently our minimum supported Python version. (It's dropped at 68.1.0 as it's not considered as a breaking change, which is surprising: https://setuptools.pypa.io/en/stable/history.html)

Differential Revision: https://phabricator.services.mozilla.com/D190674
2023-10-11 21:02:02 +00:00
Mitchell Hentges ac6ae7eb2e Bug 1732946: Vendor pip/setuptools/wheel instead of installing into venv 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:
https://github.com/jazzband/pip-tools/issues/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
2021-11-01 21:34:03 +00:00