Search code examples
pyqtpyside6

How to reduce package size of PySide6?


I am writing a software with PySide6. On my Mac the package has a size of 1.0GiB. Is there a way to easily reduce unnecessary files that I don't need to package.

I manually identified the files below as not necessary for my software. Still I end up with more than 500MB.

/Assistant.app
/Designer.app
/Linguist.app
/lupdate
/QtWebEngineCore
/QtWebEngineCore.framework

Solution

    1. You can install from PyPi only the PySide6-Essentials package.
    2. You can build from source and include via Qt installer just what you need.

    P.S. if you are struggling with building PySide from source I have a repo that might help.