Frage

I have a PyQt program that's apart of package which is only about 9MB. This isn't much of a concern except that the Qt dependencies that get drawn in with it combined are closer to 100MB.

So my question is there any logical and safe way of including only portions of the Qt library that I could include in my package and then no longer include Qt as a dependency, or a smaller alternative to the enormous Qt library that would still be compatible with my code?

War es hilfreich?

Lösung

I can't think of a way of doing what you want, but if you are using a standard PyQt distro, standard practice is to leave it up to the user to download and install dependencies. This could be automated by having an install script part of your ISO, that determines if pyqt is needed and if not available fetches the pyqt from your site and installs it, or automatically downloads source from riverbank site and attempts to build automatically.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top