pulumi / pulumi-component-provider-py-boilerplate

Demonstrates building a multi-lang Pulumi component provider in Python
Apache License 2.0
20 stars 10 forks source link

Create single file provider plugin binaries #20

Open justinvp opened 2 years ago

justinvp commented 2 years ago

Hello!

Issue details

Consider using https://github.com/indygreg/PyOxidizer or similar to produce single file native executables, similar to how we use https://github.com/vercel/pkg in https://github.com/pulumi/pulumi-component-provider-ts-boilerplate. This way, users won't have to have Python installed and configured correctly to use the provider.

justinvp commented 2 years ago

One challenge with PyOxidizer is it doesn't appear to support cross-compilation: https://github.com/indygreg/PyOxidizer/issues/95

Which means, for example, currently the macOS binaries would have to be built on macOS.

ringods commented 2 years ago

@justinvp I bumped into this project today. Another option for you to review if it might help.

https://nuitka.net/