mistercrunch opened a new pull request, #34274:
URL: https://github.com/apache/superset/pull/34274
## Summary
Optimizes CI build times for Python 3.12 by addressing missing wheel
availability that was causing 10+ minute longer build times compared to other
Python versions.
## Changes
- **Added uv package caching**: Implements caching for uv packages using
`~/.cache/uv` to avoid repeated downloads
- **Enabled `--prefer-binary` flag**: Forces uv to prefer pre-built binary
wheels over source compilation for all pip install commands
- **Removed outdated comment**: Cleaned up comment about Python 3.12 being
disabled due to compatibility issues
## Performance Impact
- **Before**: Python 3.12 builds took 10+ minutes longer than other
versions due to compiling packages from source
- **After**: Should match performance of other Python versions by using
pre-built wheels when available
## Technical Details
The root cause was Python 3.12's newer release meant fewer packages had
pre-built wheels available, forcing compilation from source. The
`--prefer-binary` flag tells uv to prioritize binary wheels, and the caching
ensures we don't
re-download packages across CI runs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]