[][src]Function pyoxidizerlib::pyrepackager::repackage::run_from_build

pub fn run_from_build(logger: &Logger, build_script: &str)

Runs packaging/embedding from the context of a build script.

This function should be called by the build script for the package that wishes to embed a Python interpreter/application. When called, a PyOxidizer configuration file is found and read. The configuration is then applied to the current build. This involves obtaining a Python distribution to embed (possibly by downloading it from the Internet), analyzing the contents of that distribution, extracting relevant files from the distribution, compiling Python bytecode, and generating resources required to build the pyembed crate/modules.

If everything works as planned, this whole process should be largely invisible and the calling application will have an embedded Python interpreter when it is built.