Python

Developer reference: this page includes exported implementation details. BUILD authors should prefer the User API reference.

pythonAppAddress()

pythonAppAddress(handle)

Undocumented.

declared_path()

declared_path(handle, path = ".")

Undocumented.

pythonAppActionHandle

const pythonAppActionHandle

Undocumented.

PYTHON_PROJECT_SOURCE_INCLUDES

const PYTHON_PROJECT_SOURCE_INCLUDES

Undocumented.

sources

const sources

Undocumented.

python_file_sources

const python_file_sources

Undocumented.

sandboxRootEnvExports()

sandboxRootEnvExports(envEntries)

Undocumented.

python_app_build

const python_app_build

Undocumented.

python_app_package

const python_app_package

Undocumented.

pythonApp

const pythonApp

Declare a Python application packaged as a PEX file. inside the build/package sandbox: nativeTool() specifications or legacy target providers whose kind registers a TOOL product.

ParameterTypeDescription
optsobject
[opts.src="."]stringWorkspace-relative Python project directory.
[opts.entryPoint]stringPEX entry point.
[opts.uvVersion]objectstring
[opts.pexVersion]objectstring
[opts.extraPexArgs=[]]string[]Extra arguments appended to PEX.
[opts.resolve]objectLocked Python resolve supplying the project path; exclusive with src.
[opts.deps=[]]ArrayExtra tool providers made available on PATH

Returns: object Label handle.