clever-crayon-70731
10/27/2022, 2:58 PMpex_binary()
takes a platforms
argument, python_awslambda()
does not. Is there a reason for this? 🤔happy-kitchen-89482
10/27/2022, 3:40 PMruntime
field, once you select that you have no more degrees of freedom wrt platformshappy-kitchen-89482
10/27/2022, 3:41 PMclever-crayon-70731
10/28/2022, 8:31 AM./pants package
in different environments would yield identical zip files, no?
But that's not the case.clever-crayon-70731
10/28/2022, 8:32 AM./pants package
in Docker containers using the AWS Lambda base image to get a Lambda.zip that works on AWS.hundreds-father-404
10/28/2022, 2:46 PMIf that was correct, then running ./pants package in different environments would yield identical zip files, no?hm it should be with
python_awslambda
...we set the --platform
argument which tells Pex to build for just that platform, even if it's foreign to the localhost. You're seeing different behavior it sounds like?happy-kitchen-89482
10/28/2022, 9:48 PMhappy-kitchen-89482
10/28/2022, 9:49 PMhappy-kitchen-89482
10/28/2022, 9:49 PM./pants package
should build functionally identical lambdas on macos as on linuxhappy-kitchen-89482
10/28/2022, 9:49 PM