A couple months ago I put together a CodeBuild project for building cryptography for just this type of use. I was specifically targeting building against (and packaging) a newer version of OpenSSL than is present on Lambda, but it solves the general problem of building it as part of that. You should be able to lightly modify the buildspec to just package up the wheel files, or you could use this as the basis for your own buildspec, of which the cryptography build is only a part.
https://github.com/mattsb42/codebuild-python-cryptography-custom-openssl On Tue, Apr 4, 2017 at 9:28 AM Paul Kehrer <paul.l.keh...@gmail.com> wrote: > That lamba-packages project looks like an approach that would work. The > error you describe in your issue is because you'll need to separately > install cryptography's dependencies. You can see those dependencies by > looking in setup.py (although you'll need to evaluate some Python code in > your head). The current version of cryptography (1.8.1) has slightly > different dependencies so you'll need to look at the setup.py in that > tarball. > > > On April 4, 2017 at 8:14:40 PM, Francesco Rizzi (francesco.ri...@gmail.com) > wrote: > > Hi all. > I've been trying to get a build of cryptography targeting the AWS Linux > AMI used by AWS Lambda (AMIs listed on > https://aws.amazon.com/amazon-linux-ami/ ), but failed repeatedly. > > Has anyone done so already? Or could try? > > I also found a "Lambda-Packages" github ( > https://github.com/Miserlou/lambda-packages ) that seems to include > cryptography pre-built for that target, but that also lead to errors ( > https://github.com/Miserlou/lambda-packages/issues/41 ) > > Thanks in advance, > FR > _______________________________________________ > Cryptography-dev mailing list > Cryptography-dev@python.org > https://mail.python.org/mailman/listinfo/cryptography-dev > > _______________________________________________ > Cryptography-dev mailing list > Cryptography-dev@python.org > https://mail.python.org/mailman/listinfo/cryptography-dev >
_______________________________________________ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev