truss 0.11.9rc5__py3-none-any.whl → 0.11.9rc6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of truss might be problematic. Click here for more details.
- truss/templates/control/control/helpers/truss_patch/model_container_patch_applier.py +7 -14
- {truss-0.11.9rc5.dist-info → truss-0.11.9rc6.dist-info}/METADATA +1 -1
- {truss-0.11.9rc5.dist-info → truss-0.11.9rc6.dist-info}/RECORD +6 -6
- {truss-0.11.9rc5.dist-info → truss-0.11.9rc6.dist-info}/WHEEL +0 -0
- {truss-0.11.9rc5.dist-info → truss-0.11.9rc6.dist-info}/entry_points.txt +0 -0
- {truss-0.11.9rc5.dist-info → truss-0.11.9rc6.dist-info}/licenses/LICENSE +0 -0
|
@@ -22,8 +22,6 @@ from helpers.truss_patch.model_code_patch_applier import apply_code_patch
|
|
|
22
22
|
from truss.base.truss_config import ExternalData, ExternalDataItem, TrussConfig
|
|
23
23
|
from truss.util.download import download_external_data
|
|
24
24
|
|
|
25
|
-
DEFAULT_PYTHON_EXECUTABLE = "python3"
|
|
26
|
-
|
|
27
25
|
|
|
28
26
|
class ModelContainerPatchApplier:
|
|
29
27
|
"""Applies patches to container running a truss.
|
|
@@ -49,10 +47,12 @@ class ModelContainerPatchApplier:
|
|
|
49
47
|
if uv_path is not None:
|
|
50
48
|
self._uv_path_cached = uv_path
|
|
51
49
|
|
|
52
|
-
# NB(nikhil): Get full path to the python interpreter for pip patches.
|
|
53
50
|
self._python_executable = self._get_python_executable()
|
|
54
51
|
|
|
55
52
|
def _get_python_executable(self) -> str:
|
|
53
|
+
# NB(nikhil): `uv` requires the full path to the python interpreter for patching
|
|
54
|
+
# python modules. We expect PYTHON_EXECUTABLE to exist in all development images, but
|
|
55
|
+
# we fallback to python3 as a default.
|
|
56
56
|
python_executable = os.environ.get("PYTHON_EXECUTABLE", "python3")
|
|
57
57
|
full_executable_path = shutil.which(python_executable)
|
|
58
58
|
return full_executable_path or python_executable
|
|
@@ -111,7 +111,6 @@ class ModelContainerPatchApplier:
|
|
|
111
111
|
"pip",
|
|
112
112
|
"uninstall",
|
|
113
113
|
python_requirement_patch.requirement,
|
|
114
|
-
"--yes",
|
|
115
114
|
"--python",
|
|
116
115
|
self._python_executable,
|
|
117
116
|
],
|
|
@@ -177,14 +176,8 @@ class ModelContainerPatchApplier:
|
|
|
177
176
|
|
|
178
177
|
|
|
179
178
|
def _identify_uv_path() -> str:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
Path.home() / ".cargo" / "bin" / "uv",
|
|
184
|
-
]
|
|
185
|
-
|
|
186
|
-
for path in candidate_paths:
|
|
187
|
-
if path.exists():
|
|
188
|
-
return str(path)
|
|
179
|
+
uv_path = shutil.which("uv")
|
|
180
|
+
if not uv_path:
|
|
181
|
+
raise RuntimeError("Unable to find `uv`, make sure it's installed.")
|
|
189
182
|
|
|
190
|
-
|
|
183
|
+
return uv_path
|
|
@@ -84,7 +84,7 @@ truss/templates/control/control/helpers/inference_server_process_controller.py,s
|
|
|
84
84
|
truss/templates/control/control/helpers/inference_server_starter.py,sha256=Fz2Puijro6Cc5cvTsAqOveNJbBQR_ARYJXl4lvETJ8Y,2633
|
|
85
85
|
truss/templates/control/control/helpers/truss_patch/__init__.py,sha256=CXZdUV_ylqLTJrKuFpvSnUT6PUFrZrMF2y6jiHbdaKU,998
|
|
86
86
|
truss/templates/control/control/helpers/truss_patch/model_code_patch_applier.py,sha256=LTIIADLz0wRn7V49j64dU1U7Hbta9YLde3pb5YZWvzQ,2001
|
|
87
|
-
truss/templates/control/control/helpers/truss_patch/model_container_patch_applier.py,sha256=
|
|
87
|
+
truss/templates/control/control/helpers/truss_patch/model_container_patch_applier.py,sha256=9bWoleD_dfQHokW5qgC5DyvAQPVhSku3tUqrVKQsQ3w,7091
|
|
88
88
|
truss/templates/control/control/helpers/truss_patch/requirement_name_identifier.py,sha256=CL3KEAj4B3ApMQShd7TI5umXVbazLZY5StrNlwHwWtc,1995
|
|
89
89
|
truss/templates/control/control/helpers/truss_patch/system_packages.py,sha256=IYh1CVU_kooAvtSGXKQDDWnNdOhlv7ENWagsL1wvhgw,208
|
|
90
90
|
truss/templates/custom/examples.yaml,sha256=2UcCtEdavImWmiCtj31ckBlAKVOwNMC5AwMIIznKDag,48
|
|
@@ -369,8 +369,8 @@ truss_train/deployment.py,sha256=lWWANSuzBWu2M4oK4qD7n-oVR1JKdmw2Pn5BJQHg-Ck,307
|
|
|
369
369
|
truss_train/loader.py,sha256=0o66EjBaHc2YY4syxxHVR4ordJWs13lNXnKjKq2wq0U,1630
|
|
370
370
|
truss_train/public_api.py,sha256=9N_NstiUlmBuLUwH_fNG_1x7OhGCytZLNvqKXBlStrM,1220
|
|
371
371
|
truss_train/restore_from_checkpoint.py,sha256=8hdPm-WSgkt74HDPjvCjZMBpvA9MwtoYsxVjOoa7BaM,1176
|
|
372
|
-
truss-0.11.
|
|
373
|
-
truss-0.11.
|
|
374
|
-
truss-0.11.
|
|
375
|
-
truss-0.11.
|
|
376
|
-
truss-0.11.
|
|
372
|
+
truss-0.11.9rc6.dist-info/METADATA,sha256=NUD1BVgmVysXZZU0V8ReAEjV7bzyJhgUumLhz4FGWno,6680
|
|
373
|
+
truss-0.11.9rc6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
374
|
+
truss-0.11.9rc6.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
|
|
375
|
+
truss-0.11.9rc6.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
|
|
376
|
+
truss-0.11.9rc6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|