aws / aws/chalice

Add option to compile dependencies if no wheel is found

Open
#1,003 3 comments 3 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.