Commit Graph

2 Commits

Author SHA1 Message Date
Christoph Burger-Scheidlin e4a83e47d4 Fix __main__.py for zipapp to work
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.
2018-08-07 03:55:35 -07:00
Franz Zapata 4b5a0e5de7 Reintroduce Python Zipapp support
* Added `main` function as an entry point.
 * Created `__main__.py` to allow the creation of Zipapps without explicitly
   calling `meson:main`.
2016-10-10 23:41:40 +03:00