mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
To vendor a Python package, run ``mach vendor python [PACKAGE]``, where ``[PACKAGE]`` is one or more package names along with a version number in the format ``pytest==3.5.1``. The package will be installed, transient dependencies will be determined, and a ``requirements.txt`` file will be generated with the full list of dependencies. The requirements file is then used with ``pip`` to download and extract the source distributions of all packages into the ``third_party/python`` directory. If you're familiar with ``Pipfile`` you can also directly modify this in the in the top source directory and then run ``mach vendor python`` for your changes to take effect. This allows advanced options such as specifying alternative package indexed (see below), and `PEP 508 specifiers <https://www.python.org/dev/peps/pep-0508/>`_.§ MozReview-Commit-ID: CRWoFamUy7V
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