From 0e7fb07f915b7a2b04df209fbacd92aca19c87af Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 5 Sep 2022 21:12:56 -0400 Subject: 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. --- docs/markdown/snippets/python_bytecompile.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 docs/markdown/snippets/python_bytecompile.md (limited to 'docs/markdown/snippets') 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. -- cgit v1.1