environment_builder
flavor.packaging.python.environment_builder
¶
Python environment builder for packaging operations.
Classes¶
PythonEnvironmentBuilder
¶
PythonEnvironmentBuilder(
python_version: str = "3.11",
is_windows: bool = False,
manylinux_tag: str = "manylinux2014",
)
Manages Python environment setup and distribution packaging.
Initialize environment builder.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
python_version
|
str
|
Python version to use (e.g., "3.11") |
'3.11'
|
is_windows
|
bool
|
Whether building for Windows |
False
|
manylinux_tag
|
str
|
Manylinux tag for Linux compatibility |
'manylinux2014'
|
Source code in flavor/packaging/python/environment_builder.py
Functions¶
create_python_placeholder
¶
Download and package Python distribution using UV.
Source code in flavor/packaging/python/environment_builder.py
download_uv_wheel
¶
Download manylinux2014-compatible UV wheel using PIP - NOT UV!