CPython, a binary builder for Python installs

The InstallPython method creates .pyc or .pyo files for .py source files and adds them to the list of targets along with the source files. They are later copied to the destination (target) directory.

The InstallPython Builder takes a target (destination) directory as its first argument and a list of source files/directories as a second argument. It returns the list of target files to copy to the target directory.

Download

This builder is developed as an external tool, meaning it is currently not a part of the SCons core sources in all standard distributions. For getting your own copy, please visit the ToolsIndex and follow the link to its current mainline...or issue the given "branch command" directly.