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.
| Parameter | Type | Description |
|---|---|---|
| opts | object | |
| [opts.src="."] | string | Workspace-relative Python project directory. |
| [opts.entryPoint] | string | PEX entry point. |
| [opts.uvVersion] | object | string |
| [opts.pexVersion] | object | string |
| [opts.extraPexArgs=[]] | string[] | Extra arguments appended to PEX. |
| [opts.resolve] | object | Locked Python resolve supplying the project path; exclusive with src. |
| [opts.deps=[]] | Array | Extra tool providers made available on PATH |
Returns: object Label handle.