Add option to compile dependencies if no wheel is found
- Dominant language
- Python
- Stars
- 11.1k
- Forks
- 1k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
There are some popular libraries that require manual compiling/handling to get them to work with Lambda. It would be nice if Chalice automated the process of _reliably_ building and packaging dependencies within an Amazon Linux Docker container kind of like the Serverless framework does:
https://serverless.com/blog/serverless-python-packaging/
Two that have caused me problems:
- psycopg2 - https://github.com/jkehler/awslambda-psycopg2
- nmslib - has a bunch of compiler flags that makes it tough to reliably compile (doesn't work reliably even when done on a t3 instance)
Contributor guide
Research direction
Start by reading the linked Serverless packaging article and reviewing Chalice’s current dependency packaging behavior. Define how an Amazon Linux Docker build should handle dependencies without wheels, including examples such as psycopg2 and nmslib. Done means the behavior is reliable and documented for supported cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, docker, python
- Domain
- build-system, cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100