databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

Make `pydabs/venv_path` optional #1687

Closed kanterov closed 1 month ago

kanterov commented 1 month ago

Changes

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.

Tests

Unit tests and manually