Skip to content

Commit

Permalink
DOC: add documentation for the custom meson config setting and env var
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Sep 12, 2023
1 parent db93d14 commit 548ab9b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/reference/environment-variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ Environment variables
possible for ``meson-python`` to detect this, and it will not set the
Python wheel platform tag accordingly.

.. envvar:: MESON

Specify the ``meson`` executable or script to use. It overrides
``tool.meson-python.meson``. See :ref:`reference-pyproject-settings` for
more details.

.. envvar:: MESONPY_EDITABLE_VERBOSE

Setting this environment variable to any value enables directing to the
Expand Down
11 changes: 11 additions & 0 deletions docs/reference/pyproject-settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ use them and examples.
``-Dpython.allow_limited_api=false`` option is passed to ``meson
setup``.

.. option:: tool.meson-python.meson

A string identifying a custom version of ``meson``. It may be an executable
name, or a path to an executable or script. If it's a path to a file that
exists and the string ends in ``.py``, then it will be invoked as a script
with the same Python interpreter that is used to run meson-python itself.

If this setting is used, it will be used for all invocation of ``meson``.
It can be overridden by a ``$MESON`` environment variable (see
:ref:`reference-environment-variables`).

.. option:: tool.meson-python.args.dist

Extra arguments to be passed to the ``meson dist`` command.
Expand Down

0 comments on commit 548ab9b

Please sign in to comment.