ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
343 stars 36 forks source link

PySide2 apps now embed all Qt libraries #384

Open albertosottile opened 2 years ago

albertosottile commented 2 years ago

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 under Contents/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):

ronaldoussoren commented 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.

albertosottile commented 2 years ago

I understand your concerns. Are you aware of any version of PySide (2 or 6) that works well with later versions of py2app?