Functions for Manipulating Global State

starlark_pyoxidizer.set_build_path(path: str)

Configure the directory where build artifacts will be written.

Build artifacts include Rust build state, files generated by PyOxidizer, staging areas for built binaries, etc.

If a relative path is passed, it is interpreted as relative to the directory containing the configuration file.

The default value is $CWD/build.

Important

This needs to be called before functionality that utilizes the build path, otherwise the default value will be used.