5 ms·
This looks great, though if it's anything like my Python experience, it's basically impossible to produce an executable that works on a system that doesn't have
by stavros 5y ago
This looks great, though if it's anything like my Python experience, it's basically impossible to produce an executable that works on a system that doesn't have Python installed.
Does anyone know of a project that'll do that? I tried 4-5 projects (IIRC Nuitka, py2exe, pyinstaller, shiv and some others) with no success.
- lifthrasiir 5y ago> it's basically impossible to produce an executable that works on a system that doesn't have Python installed. Really? I think many of solutions you've tried (including Nutika, py2exe and pyinstaller) do produce an executable with an embedded Python runtime [1]. I guess you were rather unable to produce a working executable, which can happen mainly due to peculiar dependency requirements. A list of dependencies you needed would help. [1] (Added later:) see the following reply for what this exactly means.
- stavros 5y agoWell the execution finished successfully in most cases, but the resulting binary had a dependency on libpython.so that it couldn't find. I'll try again, thanks!
- lifthrasiir 5y agoI think some of them does require libpython.so/dll to be bundled together. In some cases like pyinstaller [1] you can alternatively choose to embed that DLL file into the final executable; in that case the executable would first extract itself into a temporary folder. The point is that you don't need the full Python installation to run that executable. [1] https://pyinstaller.readthedocs.io/en/stable/operating-mode.html#bundling-to-one-file https://pyinstaller.readthedocs.io/en/stable/operating-mode....
- stavros 5y agoHmm, that makes sense, thank you!
- zem 5y agonot used it myself, but here's a relatively new entrant to the space: https://pyoxidizer.readthedocs.io/en/stable/index.html https://pyoxidizer.readthedocs.io/en/stable/index.html
- stavros 5y agoOh I don't think I tried that one, thanks!