databricks-cli/bundle/artifacts/whl
Gleb Kanterov 44902fa350
Make `pydabs/venv_path` optional (#1687)
## 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

---------

Co-authored-by: Pieter Noordhuis <pcnoordhuis@gmail.com>
2024-08-20 13:26:57 +00:00
..
testdata Auto detect Python wheel packages and infer build command (#603) 2023-07-26 10:07:26 +00:00
autodetect.go Expand and upload local wheel libraries for all task types (#1649) 2024-08-05 14:44:23 +00:00
autodetect_test.go Auto detect Python wheel packages and infer build command (#603) 2023-07-26 10:07:26 +00:00
build.go Split artifact cleanup into prepare step before build (#1618) 2024-07-24 09:13:49 +00:00
infer.go Make `pydabs/venv_path` optional (#1687) 2024-08-20 13:26:57 +00:00
prepare.go Fixed incorrectly cleaning up python wheel dist folder (#1656) 2024-08-06 09:54:58 +00:00