flexx icon indicating copy to clipboard operation
flexx copied to clipboard

Add option for single file freezing using PyInstaller's `--onefile` option

Open jmetz opened this issue 6 years ago • 1 comments

As above; I attempted a simple hack of switching the the onedir option in _app.py to onefile and commenting out the part that copies modules to a then non-existent directory, but that then failes because the modules aren't present in the single file runtime.

Having checked throuh flexx/util/freeze.py I can see that this is because of the SourceImporter, so sadly a few-line hack won't work on this any thoughts/plans to implement the single file option (possibly bundling a minimal web runtime also)?

jmetz avatar Aug 28 '19 11:08 jmetz

I don't have plans for implementing that myself at the moment. But a PR that implements it would be welcome :)

almarklein avatar Sep 02 '19 08:09 almarklein