compileall
¶
Module/script to byte-compile all .py files to .pyc (or .pyo) files.
When called as a script with arguments, this compiles the directories given as arguments recursively; the -l option prevents it from recursing into directories.
Without arguments, if compiles all modules on sys.path, without recursing into subdirectories. (Even though it should do so for packages – for now, you’ll have to deal with packages separately.)
See module py_compile for details of the actual byte-compilation.
Functions¶
compile_dir (dir[, maxlevels, ddir, force, ...]) |
Byte-compile all modules in the given directory tree. |
compile_file (fullname[, ddir, force, rx, quiet]) |
Byte-compile one file. |
compile_path ([skip_curdir, maxlevels, ...]) |
Byte-compile all module on sys.path. |
expand_args (args, flist) |
read names in flist and append to args |
main () |
Script main program. |