Open albertosottile opened 2 years ago
I don't use PySide myself and have to rely on others to help out with supporting this library. Maintaining support for various versions of PySide is a significant amount of work.
I understand your concerns. Are you aware of any version of PySide (2 or 6) that works well with later versions of py2app?
Since py2app 0.26, apps that use PySide2 started to include all the Qt Frameworks and libraries twice in the app: under
Contents/Frameworks
and underContents/Resources/lib/python{x.y}/PySide2
.This has two effects:
I reproduced this issue with Python 3.7 and 3.9 on both PySide2 5.13.1 and 5.15.2. This issue is not present on py2app 0.24.
To facilitate reproduction and debugging on your side, I created a GitHub repository, with Actions, with code and artifacts already ready to be downloaded and inspected. I add here the links to the corresponding Actions builds. You can also easily inspect the generating code for each branch.
By inspecting the two app bundles, you can easily confirm the bug.
Side note: eventually, I managed to make an app built with py2app 0.26.1 functional. Here there are more or less the steps I had to take (see https://github.com/Syncplay/syncplay/commits/py2app):
Contents/Frameworks
Contents/Resources/lib/python3.7/PySide2
PySide2/Qt/
tree from theContents/Resources/lib/python{x.y}.zip
library (this should be purely cosmetic).so
files that were inContents/Frameworks
toContents/Resources/lib/python3.9/PySide2'