databricks-cli/bundle/artifacts/whl
Serge Smertin 7d0f170eee
Added `python.DetectInterpreters` and other utils (#805)
This PR adds a few utilities related to Python interpreter detection:

- `python.DetectInterpreters` to detect all Python versions available in
`$PATH` by executing every matched binary name with `--version` flag.
- `python.DetectVirtualEnvPath` to detect if there's any child virtual
environment in `src` directory
- `python.DetectExecutable` to detect if there's python3 installed
either by `which python3` command or by calling
`python.DetectInterpreters().AtLeast("v3.8")`

To be merged after https://github.com/databricks/cli/pull/804, as one of
the steps to get https://github.com/databricks/cli/pull/637 in, as
previously discussed.
2023-10-03 10:47:09 +00:00
..
testdata Auto detect Python wheel packages and infer build command (#603) 2023-07-26 10:07:26 +00:00
autodetect.go Process only Python wheel tasks which have local libraries used (#751) 2023-09-08 11:08:21 +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 Added `python.DetectInterpreters` and other utils (#805) 2023-10-03 10:47:09 +00:00
from_libraries.go Process only Python wheel tasks which have local libraries used (#751) 2023-09-08 11:08:21 +00:00
infer.go Added `python.DetectInterpreters` and other utils (#805) 2023-10-03 10:47:09 +00:00