gecko-dev/python
Mike Hommey 54f6141287 Bug 1671424 - Move configure execution from client.mk to `mach configure`. r=firefox-build-system-reviewers,rstewart
`mach configure` currently runs the equivalent to `make -f client.mk`.
This is history, and essentially does the following:
- Create `configure` and `js/src/configure` from `configure.in` and
`js/src/configure.in` respectively.
- Create the objdir.
- Run `configure` from the objdir.

The `configure` script is, nowadays, only really used as a means to set
OLD_CONFIGURE (and also for people who want to run `configure`,
literally, as in the `configure; make` workflow). `mach configure`
actually doesn't need it. Neither does recursing into `js/src` require
`js/src/configure`, since bug 1520340 (and now as of bug 1669633, we
don't even recurse).

Because configure.py can actually derive OLD_CONFIGURE on its own
(except for `js/src/configure`, but `mach configure` doesn't run that),
we don't really need `configure` for `mach configure`.

So all in all, we're at a point in history where it's straightforward to
just initiate configure.py from mach configure, so we just do that.

And in the hypothetical case where the `mach configure` code is somehow
running in python2, we get the mach virtualenv python3 and use it to
execute `configure.py`.

Differential Revision: https://phabricator.services.mozilla.com/D93741
2020-10-20 20:41:52 +00:00
..
devtools/migrate-l10n
docs
gdbpp/gdbpp
l10n Bug 1668284 - Unknown content type change settings label is no longer accurate. r=Gijs,fluent-reviewers,flod 2020-10-20 12:34:45 +00:00
lldbutils Bug 1637130 - Rename visual overflow to ink overflow. r=dbaron 2020-07-20 20:17:36 +00:00
mach Bug 1670385 - [mach] Move 'TestBase._run_mach' to a pytest fixture, r=firefox-build-system-reviewers,rstewart 2020-10-14 03:32:04 +00:00
mozboot Bug 1667394 - Check for presence of `pip3` and `distutils.sysconfig` in `bootstrap` r=firefox-build-system-reviewers,mhentges 2020-09-28 19:19:58 +00:00
mozbuild Bug 1671424 - Move configure execution from client.mk to `mach configure`. r=firefox-build-system-reviewers,rstewart 2020-10-20 20:41:52 +00:00
mozlint Bug 1657604 - [mozlint] Support multiple linters per yaml file, r=linter-reviewers,sylvestre 2020-08-07 07:12:41 +00:00
mozperftest Bug 1663708 - [perfdocs] Find tests to add to documentation using manifests instead of path searching r=sparky,perftest-reviewers 2020-10-19 15:17:04 +00:00
mozrelease Bug 1661514 - Reformat some python files with black 20.8b1 r=rstewart 2020-09-07 14:05:10 +00:00
mozterm
mozversioncontrol Bug 1667750: safely handle unexpected hg ui.username format r=firefox-build-system-reviewers,rstewart 2020-09-28 19:02:35 +00:00
README
mach_commands.py Bug 1665494 - In `mach python-test`, don't install requirements.txt in parallel r=ahal 2020-09-18 01:38:46 +00:00
moz.build Bug 925350 - Remove `dumbmake` r=nalexander 2020-07-10 18:12:07 +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