(python) Only skip creating the venv when the required (first or env._.python.venv.python
) python version is missing
#3569
Labels
env._.python.venv.python
) python version is missing
#3569
As raised here: #1898
While inside directory with the following config:
Currently the venv won't be created by mise if any of the requested python tool versions are missing. This enhancement is to instead only skip creating the venv if the specific python version for the venv is missing. The python version is decided as follows:
env._.python.venv.python
is present, then the tool version specified inenv._.python.venv.python
, e.g.:_.python.venv = { path = "venv", create = true, version = "3.10" }
tools.python = ["3.9", "3.10", 3.11"]
tools.python = "3.11"
This ☝️ is already the effective behaviour for how the venv version is selected, however, how it works under the hood is that if a
env._.python.venv.python
isn't present then it will use whatever python3 resolves to on PATH.The text was updated successfully, but these errors were encountered: