File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -249,14 +249,15 @@ def make_eval_script_list(self) -> list[str]:
249
249
if "install" in specs and specs ["install" ] is not None :
250
250
installs = specs ["install" ].split ("; " )
251
251
for one in installs :
252
- if one .startswith ("python -m pip install" ):
253
- install = one .replace ("python -m " , "" )
252
+ if "python -m pip install" in one :
253
+ install = one .replace ("python -m " , "uv run python -m " )
254
+ install = "uv pip install pip && " + install
254
255
else :
255
256
install = one
256
257
if install .startswith ("pip" ):
257
258
install = "uv " + install
258
259
elif install .startswith ("python setup.py" ):
259
- install = install .replace ("python " , "uv run " )
260
+ install = install .replace ("python " , "uv run python " )
260
261
results .append (install )
261
262
eval_script_list = (
262
263
[
You can’t perform that action at this time.
0 commit comments