pyzo
pyzo copied to clipboard
Consider freezing with PyOxidizer
https://github.com/indygreg/PyOxidizer
See https://github.com/indygreg/PyOxidizer/issues/75 for why this is hard to do with Qt.
One option could be to freeze a relatively Python build and import additional libs from a special directory, similar how Pyzo is loaded from source even when frozen, but use that to load PySide2 / PyQt5.
But I don't what to copy the whole Qt lib over because it's huge. The hard part would be determining what files to copy over.
[...] load PySide2 / PyQt5.
Segfault. It does not even say "Panic" :) I was optimistic because of this note in the faq but I reckon the way that the Python lib is build and (Py)Qt is build makes them incompatible ...
Also tried with the python distribution of PyOxidizer (run python repl, append to sys.path
, then import PyQt5.QtCore
): same.
Is there a way to debug the segfault? Prerequisites seem to be a debug-version of Python and PyQt, oh my...
Does not seem like it:
$ set RUST_BACKTRACE=1
$ pyoxidizer run
...
...
>>> import sys
>>> sys.version
'3.7.5 (default, Oct 24 2019, 22:47:21) [MSC v.1916 64 bit (AMD64)]'
>>> sys.path.append("c:\\pythons\\python37\\lib\\site-packages")
>>> import PyQt5.QtCore
error: cargo run failed
$