gecko-dev/python
Mitchell Hentges 8f5aad46e5 Bug 1732946: Guard against "pip install" venv conflicts r=ahal
`pip install`'s standard behaviour is to satisfy the new requirement,
even if it conflicts with existing packages. If a conflict _does_
occur, `pip` will simply warn about it after the installation has
already damaged the environment.

By using the `--constraint` feature, we force `pip` to consider
already-installed packages before installing new ones. If a conflict
is detected, an error is raised and `pip` stops without damaging
the environment.

Since we're capturing system packages (when needed) with this feature,
we can now allow virtualenvs that do pip-installations to safely work
with system-using Mach environments.

Differential Revision: https://phabricator.services.mozilla.com/D126925
2021-12-30 01:08:06 +00:00
..
devtools/migrate-l10n
docs
gdbpp/gdbpp
l10n Bug 1747280 - nuke comm/ after cross-channel. r=mhentges,releng-reviewers,jmaher DONTBUILD 2021-12-28 18:56:47 +00:00
lldbutils
mach Bug 1732946: Guard against "pip install" venv conflicts r=ahal 2021-12-30 01:08:06 +00:00
mozboot Bug 1747347 - Use configure autobootstrap code to install toolchains in mach bootstrap. r=firefox-build-system-reviewers,andi 2021-12-23 20:55:36 +00:00
mozbuild Bug 1730712: Avoid redundant venv rebuilds in nested Mach calls r=perftest-reviewers,ahal,AlexandruIonescu 2021-12-30 01:05:07 +00:00
mozlint Backed out changeset 9cef54c30d49 (bug 1648114) for causing python unit test failures in test_mach_commands. CLOSED TREE 2021-12-23 02:50:20 +02:00
mozperftest Bug 1744713: Manually add "xpcshell" to the sys.path for perftests r=sparky 2021-12-15 16:29:00 +00:00
mozrelease Bug 1707591 - ride along - reformat the tree with black 21.10b0 r=ahal,webdriver-reviewers,perftest-reviewers,whimboo,gerard-majax,alexandru.irimovici 2021-11-22 22:10:03 +00:00
mozterm
mozversioncontrol Bug 1746770 - "mach vendor rust" fails when crate has the directory name that uses space character. r=firefox-build-system-reviewers,mhentges 2021-12-21 01:26:21 +00:00
mach_commands.py Bug 1731836: Simplify ./mach python arguments r=ahal 2021-11-24 20:06:33 +00:00
moz.build Bug 1709697 - Allow to repackage into MSIX. r=firefox-build-system-reviewers,mhowell,bhearsum,glandium 2021-08-05 02:58:14 +00:00
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