Skip to content

Commit bb9a3fd

Browse files
authored
Merge pull request #1822 from leiserfg/uv-no-dowload
2 parents db41761 + 287d490 commit bb9a3fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/languages/python.nix

+2
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ in
443443
env = (lib.optionalAttrs cfg.uv.enable {
444444
# ummmmm how does this work? Can I even know the path to the devenv/state at this point?
445445
UV_PROJECT_ENVIRONMENT = "${config.env.DEVENV_STATE}/venv";
446+
# Force uv not to download a Python binary when the version in pyproject.toml does not match the one installed by devenv
447+
UV_PYTHON_DOWNLOADS = "never";
446448
}) // (lib.optionalAttrs cfg.poetry.enable {
447449
# Make poetry use DEVENV_ROOT/.venv
448450
POETRY_VIRTUALENVS_IN_PROJECT = "true";

0 commit comments

Comments
 (0)