-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyQt 5.4 support #7
Comments
Thanks for reporting this, I am also very keen to get this supported! |
Can I help? |
You most certainly can, the procedure however is not very well defined at the moment. I'd be happy to properly document it with you in the Wiki if you're up for giving it a go; and to potentially develop a build-script for future compilations. In a nutshell, these are the steps I took for the current version.
2. OverwriteThis is rather unclean, but when asking Riverbank about which binaries to actually include in a distribution, such as those included in his installers, he essentially told me he figured it out via "trail and error", so I did the same.
3. Qt.conf and init.pyThese make PyQt self-contained and are required to make Qt usable without manually registering the platform-plugins. It differs from Riverbanks distribution in that it doesn't pollute the Python root directory and allows PyQt5 to co-exist with PyQt4, if needed. |
Adding a page here for instructions about how to compile and ship. Feel free to augment it with your experiences, and I'll fill in missing bits best I can. https://github.com/pyqt/python-qt5/wiki/Updating-the-repository |
Could you add the description on how to upload it on PyPi? |
Added. |
Hey @fabiencastan, have you had a chance to look into this? |
I remembered I had documented the procedure. :) It covers both how to compile, but also how to bundle it up similar to the Riverbank distribution. This is the approach I've taken in this repository as well, and should apply equally well to PyQt 5.4. |
Added updated and complete guide here. Will upload 5.4 once I've ran it through some internal tests. |
Thanks @mottosso for all the information. |
No problem @fabiencastan, once you have something up and running, we can have a chat about how to get it up on PyPI! There is a guide on compiling for Ubuntu here. |
It would appear that 5.4 hits a PyPI file size-limit. PyQt 5.3 weighs in around 53mb, whereas 5.4 ends up in the 90mb range. I've opened up a support ticket regarding the issue and so it may be resolved, but I'm not counting on it. An alternative would be to provide pure-PyQt5 via PyPI and have users install the Qt libraries themselves. |
You can also install with pip directly from Git. $ pip install git+https://github.com/pyqt/python-qt5.git I'm looking into distributing PyQt without compiled binaries from now on; it's about 15mb and shouldn't get any bigger with new releases. It'll also be slim enough to provide builds to multiple platforms. |
Thanks for the tip! Seems really useful.
Sorry, I don't get it. |
No problem!
Could do; we might be looking at potentially three packages to work around the limitation of PyPI at 50mb.
Though there is no "automatic splitting" of sorts, as far as I know. We would have to make three separate distributions with their own installers and spot on PyPI. Alternatively, we could have PyQt alone on PyPI, and grab the binaries directly from GitHub, via something like this: That would allow us to have binaries of any size, whilst still having python-qt5 be available on PyPI. Users could could also choose to install just PyQt or PyQt with dependencies/binaries. $ pip install python-qt5 # Install everything
$ pip install python-qt5 --no-dependencies # Install without Qt It's a little above and beyond my requirements at the moment, but it looks as though we should be safe to start off by providing pure-PyQt5 distributions in this particular repo, whilst distributing the binaries from another to keep Git/GitHub cleaner and lighter. @fabiencastan Would you like to have a go with |
PyPI can now increase the size limit on a package by package basis, if you kindly ask the maintainers. For a project like PyQt5 I guess they should be able to accept your request. It's a pity the official wheels are py35 only. It would be really nice to have py27 wheels on PyPI with the latest pyqt5 5.7.0. |
I'd be happy for you to do this on my behalf. |
well, ok.. I could try. Let's see how it goes. |
No description provided.
The text was updated successfully, but these errors were encountered: