Skip to content

Commit

Permalink
use conditional on flag
Browse files Browse the repository at this point in the history
  • Loading branch information
k3yss committed Jun 28, 2024
1 parent 61b1c5d commit 7640e59
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/modules/languages/python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,10 @@ let
echo uv venv "$VENV_PATH"
uv venv "$VENV_PATH"
''
else if lib.versionAtLeast cfg.version "3.9" then ''
echo ${package.interpreter} -m venv --upgrade-deps "$VENV_PATH"
${package.interpreter} -m venv --upgrade-deps "$VENV_PATH"
''
else ''
echo ${package.interpreter} -m venv "$VENV_PATH"
${package.interpreter} -m venv "$VENV_PATH"
''
else ''
echo ${package.interpreter} -m venv ${if lib.versionAtLeast cfg.version "3.9" then "--upgrade-deps" else ""} "$VENV_PATH"
${package.interpreter} -m venv ${if lib.versionAtLeast cfg.version "3.9" then "--upgrade-deps" else ""} "$VENV_PATH"
''
}
echo "${package.interpreter}" > "$VENV_PATH/.devenv_interpreter"
fi
Expand Down

0 comments on commit 7640e59

Please sign in to comment.