Skip to content

Commit 923c6c8

Browse files
committed
WIP: Enforce uv setup venv
1 parent b7fd291 commit 923c6c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

noxfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ def session_install_uv(
3434
install_docs: bool = False,
3535
) -> None:
3636
"""Install root project into the session's virtual environment using uv."""
37-
env = {"UV_PROJECT_ENVIRONMENT": session.virtualenv.location}
37+
env = {
38+
"UV_PROJECT_ENVIRONMENT": session.virtualenv.location,
39+
"UV_PYTHON": sys.executable, # Override any external UV_PYTHON setting
40+
}
3841

3942
args = ["uv", "sync", "--frozen"]
4043
if not install_project:

0 commit comments

Comments
 (0)