Since some of the python packages need to be compiled with Cython (or other compiler), we cannot compile those packages in windows directly, therefore, the powershell script in this repo build the packages with Docker (using the image lambci/lambda:build-python3.7
used by AWS Lambda).
- create a folder call
python
in the directory of the repo - modify
requirements.txt
- run
.\build_layer.ps1
in poweshell - zip
python
folder to<any name you like>.zip
- upload to AWS Lambda Layer
Happy coding~