diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-05 21:12:56 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-05-02 19:28:35 -0400 |
commit | 0e7fb07f915b7a2b04df209fbacd92aca19c87af (patch) | |
tree | 6ac78a24a7a2682e5ec49e69e9bf56a09a9bf68c /docs/markdown/snippets | |
parent | 4a2530802c8d1d7a92f3f9b4b9683636ba5c92e1 (diff) | |
download | meson-0e7fb07f915b7a2b04df209fbacd92aca19c87af.zip meson-0e7fb07f915b7a2b04df209fbacd92aca19c87af.tar.gz meson-0e7fb07f915b7a2b04df209fbacd92aca19c87af.tar.bz2 |
python module: add an automatic byte-compilation step
For all source `*.py` files installed via either py.install_sources() or
an `install_dir: py.get_install_dir()`, produce `*.pyc` files at install
time. Controllable via a module option.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/python_bytecompile.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/markdown/snippets/python_bytecompile.md b/docs/markdown/snippets/python_bytecompile.md new file mode 100644 index 0000000..0240c9d --- /dev/null +++ b/docs/markdown/snippets/python_bytecompile.md @@ -0,0 +1,4 @@ +## Python module can now compile bytecode + +A new builtin option is available: `-Dpython.bytecompile=2`. It can be used to +compile bytecode for all pure python files installed via the python module. |