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 authored and dnicolodi committed Sep 12, 2023
1 parent e35ac0d commit 0397288
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 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

Specifies 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 All @@ -68,7 +74,7 @@ Environment variables

.. envvar:: NINJA

Specify the ninja_ executable to use. It can also be used to select
Specifies the ninja_ executable to use. It can also be used to select
ninja_ alternatives like samurai_.

.. _ninja: https://ninja-build.org
Expand Down
8 changes: 8 additions & 0 deletions docs/reference/pyproject-settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ use them and examples.
``-Dpython.allow_limited_api=false`` option is passed to ``meson
setup``.

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

A string specifying the ``meson`` executable or script to use. If it is a
path to an existing file with a name ending in ``.py``, it will be invoked
as a Python script using the same Python interpreter that is used to run
``meson-python`` itself. It can be overrridden by the :envvar:`MESON`
environment variable.

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

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

0 comments on commit 0397288

Please sign in to comment.