gecko-dev/python/mozboot
Ricky Stewart d6d752863b Bug 1667394 - Check for presence of `pip3` and `distutils.sysconfig` in `bootstrap` r=firefox-build-system-reviewers,mhentges
`bootstrap` does not/cannot "fix" a broken Python environment, but we can do some checks and make sensible suggestions about how to fix the problem.

We expect that both of the checks we do here are primarily going to be triggered on new installs of Ubuntu. For macOS, installing `python` with `brew` will also install `pip`, and Windows has MozillaBuild. It's just Ubuntu that goes out of its way to be confusing, so add particularly informative error messages for Debian/Ubuntu.

Note that this doesn't change the functionality of `bootstrap` in any fundamental way -- `mach` is already broken if either of these conditions don't hold, but now we show an informative error message.

Differential Revision: https://phabricator.services.mozilla.com/D91470
2020-09-28 19:19:58 +00:00
..
bin Bug 1664581 - Explicitly recommend putting `hg` in your `PATH` if `bootstrap` can't find it r=nalexander 2020-09-14 21:18:27 +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
README.rst
setup.py Bug 1210157 - Use unicode_literals in all mozboot modules r=firefox-build-system-reviewers,mshal 2019-08-20 21:19:16 +00:00

README.rst

mozboot - Bootstrap your system to build Mozilla projects
=========================================================

This package contains code used for bootstrapping a system to build
mozilla-central.

This code is not part of the build system per se. Instead, it is related
to everything up to invoking the actual build system.

If you have a copy of the source tree, you run:

    python bin/bootstrap.py

If you don't have a copy of the source tree, you can run:

    curl https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py | python -

The bootstrap script will download everything it needs from hg.mozilla.org
automatically!