pyqt / python-qt5

Unofficial PyQt5 via PyPI for Python 2.7 64-bit on Windows
GNU General Public License v3.0
280 stars 77 forks source link

Explain how to build the DLLs from source #40

Closed madprog closed 6 years ago

madprog commented 6 years ago

Thank you for providing these DLLs.

Would it be possible to provide additional information on how to re-create them from the Qt5 community source code?

More precisely, I faced this problem when trying to compile them myself: Python2.7 is requiring a build with Visual C++ 9.0 (as stated in the WindowsCompilers Python wiki page), and Qt5 uses the C++ 2010 syntax which is not supported by Visual C++ 9.0.

What magic did you use to bypass this contradiction? Would it be a good idea to add this information in the README?

mottosso commented 6 years ago

Certainly @madprog, there are instructions in the Wiki, primarily this, but be warned they are both lengthy and relatively old (for 5.4).

Yes it would be a good idea to have it in the README, if you run through it it would be great to hear back with your experiences such that we could potentially update that and give it more exposure.

What magic did you use to bypass this contradiction? Would it be a good idea to add this information in the README?

The magic is simply to ignore that Python is built with an older VS, and use it anyway. I've heard rumours about there being issues with that, but having used it for a number of years now I've learnt to ignore them. Although nowadays I use Python 3 almost exclusively, for which this repo is no longer necessary as it's available via pip install PyQt5

madprog commented 6 years ago

Thank you @mottosso for your answer. I will use your repository for now, and try to build it from scratch later using the Wiki instructions (of course I should have looked in the Wiki first!)