Project settingsΒΆ
This page lists the configuration settings supported by
meson-python in the pyproject.toml file. Please refer to the
Passing arguments to Meson guide for for information on how to
use them and examples.
Enable support for relocating internal shared libraries that would be installed into the system shared library location to the
.<package-name>.mesonpy.libsfolder also on Windows. The relocation can be done transparently on UNIX platforms and on macOS, where the shared library load path can be adjusted via RPATH or equivalent mechanisms. Windows lacks a similar facility, thus the Python package is responsible to extend the DLL load path to include this directory or to preload the shared libraries. See here for detailed documentation. This option ensures that the package authors are aware of this requirement.
- tool.meson-python.limited-apiΒΆ
A boolean indicating whether the extension modules contained in the Python package target the Python limited API. Extension modules can be compiled for the Python limited API specifying the
limited_apiargument to theextension_module()function in the Meson Python module. When this setting is set to true, the valueabi3is used for the Python wheel filename ABI tag.This setting is automatically reverted to false when the
-Dpython.allow_limited_api=falseoption is passed tomeson setup.
- tool.meson-python.mesonΒΆ
A string specifying the
mesonexecutable 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 runmeson-pythonitself. It can be overridden by theMESONenvironment variable.
- tool.meson-python.args.distΒΆ
Extra arguments to be passed to the
meson distcommand.
- tool.meson-python.args.setupΒΆ
Extra arguments to be passed to the
meson setupcommand.
- tool.meson-python.args.compileΒΆ
Extra arguments to be passed to the
ninjacommand.
- tool.meson-python.args.installΒΆ
Extra arguments to be passed to the
meson installcommand.