Make pydabs/venv_path optional. When not specified, CLI detects the Python interpreter using python.DetectExecutable, the same way as for artifacts. python.DetectExecutable works correctly if a virtual environment is activated or python3 is available on PATH through other means.
Extract the venv detection code from PyDABs into libs/python/detect. This code will be used when we implement the python/venv_path section in databricks.yml.
Changes
Make
pydabs/venv_path
optional. When not specified, CLI detects the Python interpreter usingpython.DetectExecutable
, the same way as forartifacts
.python.DetectExecutable
works correctly if a virtual environment is activated orpython3
is available on PATH through other means.Extract the venv detection code from PyDABs into
libs/python/detect
. This code will be used when we implement thepython/venv_path
section indatabricks.yml
.Tests
Unit tests and manually