Commit Graph
18 Commits
Author SHA1 Message Date
Alex Hochheiden 3265db3f42 Bug 1966763 - Bump mach minimum Python version to 3.9 r=firefox-build-system-reviewers,mach-reviewers,jgraham,glandium,ahal
Differential Revision: https://phabricator.services.mozilla.com/D249672
2025-06-13 17:39:52 +00:00
ahochheiden a7840606de Bug 1843209 - Bump Mach's minimum Python version to 3.8 r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D183449
2023-12-12 03:52:00 +00:00
Cosmin Sabou 4d28b93ff6 Backed out 2 changesets (bug 1843209) for python3 related browser accessible failures. CLOSED TREE
Backed out changeset 052214d67a99 (bug 1843209)
Backed out changeset 36c5e6c2819f (bug 1843209)
2023-11-23 02:41:22 +02:00
ahochheiden 90004e9277 Bug 1843209 - Bump Mach's minimum Python version to 3.8 r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D183449
2023-11-22 20:07:41 +00:00
ahochheiden 3acb3f29e0 Bug 1838948 - Update reference to Python 3.6 as the minimum Python version that Mach supports to Python 3.7 r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D181305
2023-06-22 02:15:57 +00:00
Cosmin Sabou 24f487f82f Backed out 2 changesets (bug 1838952, bug 1838948) for causing bootstrap failures. CLOSED TREE
Backed out changeset 7bdf45ed2f6b (bug 1838952)
Backed out changeset 3690d22636d7 (bug 1838948)
2023-06-21 05:56:46 +03:00
ahochheiden a8cfdca0b0 Bug 1838948 - Update reference to Python 3.6 as the minimum Python version that Mach supports to Python 3.7 r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D181305
2023-06-21 02:01:58 +00:00
ahochheiden c053956bf9 Bug 1766497 - Doc updates regarding venv r=firefox-build-system-reviewers,nalexander
- Removed references to Python 2
- Replaced references to `virtualenv` with `venv`

Depends on D145787

Differential Revision: https://phabricator.services.mozilla.com/D158922
2022-11-01 07:48:06 +00:00
Cristian Tuns 3e54e59e0c Backed out 5 changesets (bug 1766497) for causing build bustages with "No module named 'encodings'" CLOSED TREE
Backed out changeset 09f7f3d1c6dd (bug 1766497)
Backed out changeset 6bb5f754957a (bug 1766497)
Backed out changeset aedf2d7af408 (bug 1766497)
Backed out changeset 394555265c86 (bug 1766497)
Backed out changeset 41be40696e00 (bug 1766497)
2022-10-12 22:51:51 -04:00
ahochheiden 55c11456b5 Bug 1766497 - Doc updates regarding venv r=firefox-build-system-reviewers,nalexander
- Removed references to Python 2
- Replaced references to `virtualenv` with `venv`

Differential Revision: https://phabricator.services.mozilla.com/D158922
2022-10-13 00:40:12 +00:00
Mitchell Hentges 1910eae0c7 Bug 1730712: Update "Moz site" terminology r=ahal
The existing terminology had two issues:
* `VirtualenvManager` wasn't always associated with an on-disk
  `virtualenv`: for example, when running in automation, Mach
  "activates" a `VirtualenvManager`, updating its import scope,
  but without ever creating an on-disk `virtualenv`.
* An upcoming patch splits the `VirtualenvManager` class, pulling
  "on-disk virtualenv-handling functions" from the project-wide
  interface for managing Python's import scope.

After some good discussion with Ahal, I think we've struck
the terminology that handles this distinction well: we'll call
the "import scope"-handling part the "site", and we'll continue
to call on-disk virtualenvs (and their representative classes)
as, well, virtualenvs.

Differential Revision: https://phabricator.services.mozilla.com/D130391
2021-11-17 20:54:23 +00:00
Mitchell Hentges 12d69b4d0a Bug 1732948: Assert that the Mach venv isn't out-of-date during init r=ahal
As we leverage the Mach environment more, it becomes increasingly
important that it isn't out-of-date on developer machines.

Add an `up_to_date()` check during Mach initialization.
To minimize the cost to startup, I'm skipping the "pip list" check.

This change required moving `virtualenv` from `mozbuild` to `mach` to
make it available during the early stage of Mach init.

Differential Revision: https://phabricator.services.mozilla.com/D127144
2021-11-01 21:34:02 +00:00
criss 33743f7f89 Backed out changeset 894fc83e19a0 (bug 1717051) for causing busting macth commands. a=backout 2021-09-30 10:36:36 +03:00
Mitchell Hentges e685b04400 Bug 1717051: Always populate Mach pths r=firefox-build-system-reviewers,glandium
The previous behaviour was to:
* Never add a `pthfile` to the Mach virtualenv, and
* Always add Mach's paths to the `sys.path` when Mach initializes

However, this meant that `pip` would needlessly install packages
that already exist in the vendored environment.

Tweak `pth` behaviour so that `pip` behaves more efficiently.

Differential Revision: https://phabricator.services.mozilla.com/D120402
2021-09-29 15:09:36 +00:00
Mitchell Hentges 7753b911e2 Bug 1717051: Rename "mach_bootstrap.py" to "mach_initialize.py" r=firefox-build-system-reviewers,glandium
We've overloaded "bootstrap" to mean three different things:
* The "standalone bootstrap script": `python/mozboot/bin/bootstrap.py`.
  This is to freshly clone a new repo, then run `./mach bootstrap`.
* `./mach bootstrap`: Install necessary dependencies and set up the
  system for development.
* "Mach bootstrap": do the in-process initialization work Mach needs
  before it can run commands.

By using the term "initialize" instead, perhaps we can remove
ambiguity when discussing Mach.

I'm not attached to the name (or this change at all), but I'm interested
in reviewer thoughts :)

Differential Revision: https://phabricator.services.mozilla.com/D120410
2021-09-03 20:46:22 +00:00
Sylvestre Ledru b2bbe67e2d Bug 1444628 - Fix a bunch of typo in the doc r=ahal
MozReview-Commit-ID: SNXsViVUm0
2018-03-10 17:14:38 +01:00
Gregory Szorc cf84fd5354 NO BUG - Document how to install Python if your system fails you
DONTBUILD (NPOTB)
2014-01-08 11:07:20 -08:00
Gregory Szorc aa6b687791 NO BUG - Update build system docs for Python and moz.build files
DONTBUILD (NPOTB)
2013-09-30 14:32:07 +02:00