[build.ps1] use Python 3.12+ from Python.org #76568
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR bumped default Python to 3.12.6 and switched to use Python.org installers. Downloading from Python.org can utilize their SBOM for checksum, so all releases after 3.12 will be allowed.
This PR also addressed the regression where Python 3.12 doesn't have the
distutils
(andpackaging
, for the upcoming rebranch) modules required for building LLDB. They're now directly installed from trusted wheels.These changes make the cached Python fully capable of handling the whole build process, so host Python is no longer required.