Skip to content

Commit f1ab3b7

Browse files
committed
handle interpreter_path
1 parent de1222b commit f1ab3b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/uv/private/lock.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ def _lock_impl(ctx):
111111

112112
lock_args.add("--no-progress")
113113
lock_args.add("--quiet")
114-
lock_args.add("--python", py_runtime.interpreter)
114+
if py_runtime.interpreter:
115+
lock_args.add("--python", py_runtime.interpreter)
116+
else:
117+
lock_args.add("--python", py_runtime.interpreter_path)
115118
lock_args.add_all(args)
116119
lock_args.add_all(srcs)
117120

0 commit comments

Comments
 (0)