Compilation

Terry Reedy tjreedy at udel.edu
Mon Jan 7 01:18:04 EST 2019


On 1/6/2019 6:20 PM, Avi Gross wrote:

> I suspect there is some python tool that can go through a directory
> structure of python code and produce appropriate byte code files in one
> sweep.

import compileall
help(compileall)

The Windows installer optionally runs it.  It is usually needed if one 
does an all-users install into Program Files, as non-admin users cannot 
cause .pyc files to be writen therein.

-- 
Terry Jan Reedy




More information about the Python-list mailing list