slot_builder
๐ค AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
flavor.packaging.python.slot_builder
¶
Python slot builder for packaging operations.
Classes¶
PythonSlotBuilder
¶
PythonSlotBuilder(
manifest_dir: Path,
package_name: str,
entry_point: str,
python_version: str = "3.11",
is_windows: bool = False,
manylinux_tag: str = "manylinux2014",
build_config: dict[str, Any] | None = None,
wheel_builder: Any = None,
)
Manages slot preparation and artifact assembly for Python packages.
Initialize slot builder.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
manifest_dir
|
Path
|
Directory containing package manifest |
required |
package_name
|
str
|
Name of the package |
required |
entry_point
|
str
|
Entry point for the package |
required |
python_version
|
str
|
Python version to use |
'3.11'
|
is_windows
|
bool
|
Whether building for Windows |
False
|
manylinux_tag
|
str
|
Manylinux tag for Linux compatibility |
'manylinux2014'
|
build_config
|
dict[str, Any] | None
|
Build configuration dictionary |
None
|
wheel_builder
|
Any
|
WheelBuilder instance for building wheels |
None
|
Source code in flavor/packaging/python/slot_builder.py
Functions¶
prepare_artifacts
¶
Prepare all artifacts needed for flavor assembly.
Returns:
| Type | Description |
|---|---|
dict[str, Path]
|
Dictionary mapping artifact names to their paths: |
dict[str, Path]
|
|
dict[str, Path]
|
|
dict[str, Path]
|
|
dict[str, Path]
|
|
Source code in flavor/packaging/python/slot_builder.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | |
resolve_transitive_dependencies
¶
resolve_transitive_dependencies(
dep_path: Path,
seen: set[Path] | None = None,
depth: int = 0,
) -> list[Path]
Recursively resolve all transitive local dependencies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dep_path
|
Path
|
Path to a local dependency |
required |
seen
|
set[Path] | None
|
Set of already-seen paths to avoid cycles |
None
|
depth
|
int
|
Current recursion depth for logging |
0
|
Returns:
| Type | Description |
|---|---|
list[Path]
|
List of all transitive dependency paths in dependency order (deepest first) |