Skip to content

Commit a82c09b

Browse files
committed
updates
1 parent 416370f commit a82c09b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

commit0/harness/spec.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,15 @@ def make_eval_script_list(self) -> list[str]:
249249
if "install" in specs and specs["install"] is not None:
250250
installs = specs["install"].split("; ")
251251
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
254255
else:
255256
install = one
256257
if install.startswith("pip"):
257258
install = "uv " + install
258259
elif install.startswith("python setup.py"):
259-
install = install.replace("python ", "uv run ")
260+
install = install.replace("python ", "uv run python ")
260261
results.append(install)
261262
eval_script_list = (
262263
[

0 commit comments

Comments
 (0)