Commit Graph

2 Commits

Author SHA1 Message Date
joshcangit 3e26c0f1ca Add optional compress
Compress files under source directory using Deflate method.
By default, files are not compressed in the archive.
Compression is active only when this option is defined.

https://docs.python.org/3/library/zipapp.html?highlight=zipapp#cmdoption-zipapp-c
2022-05-16 12:17:24 -04:00
Eli Schwartz 0fa808f706 Add script to create a zipapp.
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
2020-11-27 18:12:08 +02:00