aboutsummaryrefslogtreecommitdiff
path: root/__main__.py
AgeCommit message (Collapse)AuthorFilesLines
2020-11-27Add script to create a zipapp.Eli Schwartz1-20/+0
Invoke create_zipapp.py from the root of the repository and it will create a minimal zipapp with only the mesonbuild module code and a __main__.py directly copied from meson.py The meson.py launcher already tracks the desired entry point, and its only other effect is to add the mesonbuild directory to the path if it exists, which it won't in the zipapp. So there's no need to duplicate this into another __main__.py
2018-08-07Fix __main__.py for zipapp to workChristoph Burger-Scheidlin1-2/+2
0a035de removed main from meson.py breaking the call from __main__.py. This causes zipapps to fail, since the call to meson.main() fails. Copying the invocation from meson.py fixes this issue. Additionally, add a test to run_meson_command_tests.py that builds a zipapp from the source and attempts executing this zipapp with --help to ensure that the resulting zipapp is properly executable.
2016-10-10Reintroduce Python Zipapp supportFranz Zapata1-0/+20
* Added `main` function as an entry point. * Created `__main__.py` to allow the creation of Zipapps without explicitly calling `meson:main`.