You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is now (``meson-python`` >= 0.13) possible to use meson install_tags to select which targets are installed into the binary wheels.
85
+
86
+
.. admonition:: Meson installation tags
87
+
:class: seealso
88
+
89
+
Each meson target has a default install_tag (e.g. ``runtime`` for shared libraries and ``devel`` for headers.). Using ``meson install --tags=tag1,tag2,...`` will cause meson to only install the targets tagges with any of the specified tags. The default tag of each target can be overwritten using the target's "install_tag" option. For more information refer mesons documentation in installation-tags: https://mesonbuild.com/Installing.html#installation-tags
90
+
91
+
The following code (in pyproject.toml) causes meson-python to only install targets tagged with ``runtime`` or ``python-runtime``) into the binary wheel (ignoring e.g. C++ headers):
92
+
93
+
.. code-block:: console
94
+
95
+
[tool.meson-python.args]
96
+
dist = []
97
+
setup = []
98
+
compile = []
99
+
install = ['--tags=runtime,python-runtime']
100
+
101
+
Using the build config settings (with pypa/build):
0 commit comments