Skip to content

Commit 7228620

Browse files
committed
hatch: cli: Update uv command search
1 parent b1838f8 commit 7228620

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hatch/cli/application.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from hatch.utils.platform import Platform
1313
from hatch.utils.runner import ExecutionContext
1414

15+
from uv import find_uv_bin
16+
1517
if TYPE_CHECKING:
1618
from collections.abc import Generator
1719

@@ -160,7 +162,8 @@ def ensure_plugin_dependencies(self, dependencies: list[Requirement], *, wait_me
160162
if dependencies_in_sync(dependencies):
161163
return
162164

163-
pip_command = [sys.executable, '-u', '-m', 'uv', 'pip']
165+
uv_bin = find_uv_bin()
166+
pip_command = [uv_bin, 'pip']
164167

165168
pip_command.extend(['install'])
166169

0 commit comments

Comments
 (0)