dependency_resolver
flavor.packaging.python.dependency_resolver
¶
TODO: Add module docstring.
Classes¶
DependencyResolver
¶
Handles Python dependency resolution and tool management.
Initialize dependency resolver.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
is_windows
|
bool
|
Whether building for Windows |
False
|
Source code in flavor/packaging/python/dependency_resolver.py
Functions¶
download_uv_wheel
¶
Download manylinux2014-compatible UV wheel using PIP - NOT UV!
CRITICAL WARNING: This function downloads the UV BINARY itself using pip. UV CANNOT DOWNLOAD ITSELF. This is PyPA pip territory.
DO NOT CONFUSE THIS WITH UV DOWNLOAD OPERATIONS.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dest_dir
|
Path
|
Directory to save UV binary to |
required |
Returns:
| Type | Description |
|---|---|
Path | None
|
Path to UV binary if successful, None otherwise |
Retries
Up to 3 attempts with exponential backoff for network errors
Source code in flavor/packaging/python/dependency_resolver.py
find_uv_command
¶
Find the UV command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
raise_if_not_found
|
bool
|
Whether to raise if not found |
True
|
Returns:
| Type | Description |
|---|---|
str | None
|
UV command path or None |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If UV not found and raise_if_not_found is True |