gecko-dev/python
Mitchell Hentges 9653ddb59b Bug 1759329: Properly exclude Brew's site-packages when using Mach venv r=ahal
Previously, when trying to determine the minimal `sys.path` that just
includes the standard library (but no `pip`-installed packages), we
would resolve the `sys.path` and remove the system and user
site-packages. However, this "removal" step didn't work as-is for
`brew`'s Python, because its "system site-packages" is //different//
from its `site.getsitepackages()`.

Stepping back though, there's an easier solution: run `python` with the
`-S` flag, and no "site" paths or custom initialization logic will add
anything extra to the stdlib.

Differential Revision: https://phabricator.services.mozilla.com/D141508
2022-03-21 20:24:33 +00:00
..
devtools/migrate-l10n Bug 1753413 - fx doc: Remove whitespaces, trailing lines & windows CR r=andi,perftest-reviewers,sparky 2022-02-03 18:34:58 +00:00
docs Bug 1755516: Add "common" to PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS r=ahal 2022-03-10 20:41:54 +00:00
gdbpp/gdbpp
l10n Bug 1745905 - Drop extraneous convert_xul_to_fluent script. r=jaws 2022-03-18 14:36:54 +00:00
lldbutils
mach Bug 1759329: Properly exclude Brew's site-packages when using Mach venv r=ahal 2022-03-21 20:24:33 +00:00
mozboot Bug 1758189: Don't double-srcdir for mach during stdalone bootstrap r=ahal 2022-03-09 21:51:13 +00:00
mozbuild Bug 1759585: Avoid hang in ./mach configure r=firefox-build-system-reviewers,nalexander 2022-03-16 16:32:25 +00:00
mozlint Bug 1756224: Update MozlintParser docs about default paths r=ahal 2022-03-09 15:52:48 +00:00
mozperftest Bug 1741971 - Add MozPerfTest Testing Section to WPT Layer r=perftest-reviewers,sparky 2022-03-09 20:53:29 +00:00
mozrelease Bug 1755088: Replace all usages of unittest deprecated aliases r=webdriver-reviewers,ahal,whimboo 2022-02-17 15:21:41 +00:00
mozterm
mozversioncontrol Bug 1732795: Resolve upcoming pytest deprecations r=webdriver-reviewers,ahal,whimboo 2022-02-18 14:27:18 +00:00
mach_commands.py Bug 1753795 - Add progress bar (via tqdm) to running Python Tests r=ahal 2022-02-11 18:51:46 +00:00
moz.build
README

This directory contains common Python code.

The basic rule is that if Python code is cross-module (that's "module" in the
Mozilla meaning - as in "module ownership") and is MPL-compatible, it should
go here.

What should not go here:

* Vendored python modules (use third_party/python instead)
* Python that is not MPL-compatible (see other-licenses/)
* Python that has good reason to remain close to its "owning" (Mozilla)
  module (e.g. it is only being consumed from there).

Historical information can be found at
https://bugzilla.mozilla.org/show_bug.cgi?id=775243
https://bugzilla.mozilla.org/show_bug.cgi?id=1346025