aws / aws/chalice

Compile .pyc files when unpacking wheels into distribution

Open
#868 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.