You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pip install your requirements files into the virtualenv
copy over the chalice app, chalicelib, and vendor directory into site-packages
zip up the site-packages directory
This process works as long as all the packages are pure python packages. If you specify something like numpy, we'll install the packages based on whatever platform you're running on, which is problematic. For example, on a Mac, we'll install the numpy binaries for mac, zip them up and send them over to lambda, and import numpy will fail when the lambda function is invoked.
In order to create a lambda deployment package, chalice currently will:
chalicelib
, andvendor
directory into site-packagesThis process works as long as all the packages are pure python packages. If you specify something like
numpy
, we'll install the packages based on whatever platform you're running on, which is problematic. For example, on a Mac, we'll install thenumpy
binaries for mac, zip them up and send them over to lambda, andimport numpy
will fail when the lambda function is invoked.We've received a number of issues about this:
What I'd propose is a best-effort attempt at using manylinux1 wheels:
I'm not sure how feasible it is to implement the above logic, but that would be my ideal behavior.
The text was updated successfully, but these errors were encountered: