databricks-cli/bundle/artifacts/whl
Denis Bilenko 2fee243586
Fix finding Python within virtualenv on Windows (#2034)
## Changes
Simplify logic for selecting Python to run when calculating default whl
build command: "python" on Windows and "python3" everywhere.

Python installers from python.org do not install python3.exe. In
virtualenv there is no python3.exe.

## Tests
Added new unit tests to create real venv with uv and simulate activation
by prepending venv/bin to PATH.
2024-12-20 07:45:32 +00:00
..
testdata Auto detect Python wheel packages and infer build command (#603) 2023-07-26 10:07:26 +00:00
autodetect.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01: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 Fix finding Python within virtualenv on Windows (#2034) 2024-12-20 07:45:32 +00:00
prepare.go Fixed incorrectly cleaning up python wheel dist folder (#1656) 2024-08-06 09:54:58 +00:00