Skip to content

Commit 7adb29e

Browse files
henryiiilayday
andauthored
fix: support UV environment variable (#971)
Co-authored-by: layday <layday@protonmail.com>
1 parent a40623b commit 7adb29e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/build/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def create(self, path: str) -> None:
304304

305305
self._uv_bin = uv.find_uv_bin()
306306
except (ModuleNotFoundError, FileNotFoundError):
307-
uv_bin = shutil.which('uv')
307+
uv_bin = shutil.which(os.environ.get('UV') or 'uv')
308308
if uv_bin is None:
309309
msg = 'uv executable not found'
310310
raise RuntimeError(msg) from None

0 commit comments

Comments
 (0)