From bb4ad1838363522c0e030525686f0824f742e1e8 Mon Sep 17 00:00:00 2001 From: CloudGPU <129925370+cloudgpuapp@users.noreply.github.com> Date: Tue, 24 Nov 2026 14:53:26 +0800 Subject: [PATCH] DOC: document the Meson install_mode wheel limitation --- docs/reference/limitations.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/reference/limitations.rst b/docs/reference/limitations.rst index 78c3a30ac..88c080483 100644 --- a/docs/reference/limitations.rst +++ b/docs/reference/limitations.rst @@ -8,6 +8,19 @@ Limitations *********** +Executable permissions for installed scripts +============================================ + +When building a wheel, ``meson-python`` preserves a file's existing mode. +It does not apply an ``install_mode`` override specified in the Meson build +definition. For example, a Python script generated by ``configure_file()`` +without executable permission can remain non-executable in the wheel even +when its ``install_mode`` requests executable permission. + +To expose a Python command portably, install the Python module and declare +its entry point in ``[project.scripts]``. A wheel installer then creates the +appropriate command launcher for the target environment. + Non-package data files ======================