Compile .pyc files when unpacking wheels into distribution
Open
feature-request
- Dominant language
- Python
- Stars
- 11.1k
- Forks
- 1k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
Wheels don't carry .pyc files, but the Lambda distribution file probably should, to avoid incurring a startup time penalty. `chalice.deploy.packager.DependencyBuilder._install_wheels` should include a call to `compileall.compile_dir`.
Contributor guide
Research direction
Start in chalice.deploy.packager.DependencyBuilder._install_wheels and inspect how wheels are unpacked into the Lambda distribution. Add the requested compileall.compile_dir step, then verify that the resulting distribution contains compiled Python files and that the existing packaging behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- build-system, cloud
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100