Electron-builder: Include python binaries in pkg

Created on 10 Aug 2017  Â·  3Comments  Â·  Source: electron-userland/electron-builder

Question !


  • Version: 19.19.1

  • Target: mac



Hello !

I am calling python scripts from my nodejs environment. For now, Python is installed globally on the target computer. My question is: is there a way to add local python binaries (for example, during the building) so that I don't depend on the previous Python installation (and on the PATH env variable) ?

Not sure this question should be targeted to electron-builder, though...

Thanks in advance

question

Most helpful comment

To bundle some files, you can use extraFiles / extraResources options.

All 3 comments

If you can avoid providing own Python — avoid it :)

Python 2.7.10 is preinstalled on macOS.

Hmm ok. Avoiding it is, then...
(I said mac, but in fact, I also need to compile on Windows. I'll just tell people to preinstall Python in this case)

Thanks. This can be closed for me.

To bundle some files, you can use extraFiles / extraResources options.

Was this page helpful?
0 / 5 - 0 ratings