meson-python icon indicating copy to clipboard operation
meson-python copied to clipboard

Document support for installing python scripts

Open dnicolodi opened this issue 3 years ago • 3 comments

How can I install python scripts with meson-python replacing setuptool's console_scripts enty_point or [project.scripts] in pyproject.toml? If there is a vision of how this should look like I'm happy to try to work on the support.

dnicolodi avatar Sep 13 '22 21:09 dnicolodi

Hi, project.scripts (from PEP 621) is supported, so you may use it as you would on any other Python build backend (example: https://peps.python.org/pep-0621/#example). Alternatively, if you need to install any other scripts, executables in Meson are included in the package as scripts.

FFY00 avatar Sep 13 '22 21:09 FFY00

Great. From the documentation it is not evident which features of PEP621 are supported.

dnicolodi avatar Sep 13 '22 21:09 dnicolodi

Noted. Thanks!

FFY00 avatar Sep 13 '22 21:09 FFY00