Miserlou / Zappa

Serverless Python
https://blog.zappa.io/
MIT License
11.89k stars 1.2k forks source link

zappa package - provide option to disable replacing with lambda compiled packages outdated #1565

Closed jnoortheen closed 6 years ago

jnoortheen commented 6 years ago

Context

when deploying with zappa command, some of Python packages are replaced with equivalent lambda compiled packages which is good in some situation. But often they are outdated and there is no option given to disable this behavior. Also when using lambdaci/python docker image as base for CI/CD this step is not necessary. The lambda-packages is big and kind of bloated.

Possible Fix

  1. there should be a command to zappa package and zappa deploy or some settings config to disable replacing lambda packages.
  2. Instead of giving lambda-packages as dependency, we can keep a PyPI mirror with wheels which can be used by pip when installing/deploying.

Steps to Reproduce

  1. pip install pusher pyopenssl
  2. zappa deploy (the cryptography 2.2.1 is replaced by ~1.9) which results in error.

Your Environment

jnoortheen commented 6 years ago

Sorry my fault. Didn't notice the use_precompiled_packages setting.