15 Commits

Author SHA1 Message Date
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
Sandro Mani
c5bb41dc01 PyQt5 cmake improvements 2021-09-30 12:13:29 +02:00
Loïc Bartoletti
1874274b9f [FreeBSD] remove if statement in FindPyQt5.py and fix #41913 2021-06-06 08:53:15 +10:00
Dmitry Shachnev
0506895753 Make FindPyQt5.py compatible with SIP v5 2020-07-21 21:49:46 +03:00
Dmitry Shachnev
426098bb86 FindPyQt5.py: Read version and SIP flags directly from PyQt5
And fix Qt version tag detection.
2020-07-21 21:46:24 +03:00
Daniel Minor
4009fa8e22 Fix FindPyQt5 cmake and python scripts
As written, the FindPyQt5.cmake and FindPyQt5.py scripts will succeed even if
PyQt5 is not installed. In FindPyQt5.cmake, we have PYQT5_FIND_REQUIRED rather
than PyQt5_FIND_REQUIRED, so the package is always treated as though it is
optional. In FindPyQt5.py, the script will succeed with a default location for
the sip directory, even if the PyQt5 directory is not located.

For some systems, if enough other dependencies are installed, the build can
get about halfway complete without the main PyQt5 dependency, and then fail
with a message like:

sip: Unable to find file "QtXml/QtXmlmod.sip"

I hit this building on Ubuntu, and there have been a few similar bug reports in
the past.
2020-07-16 08:41:14 +10:00
Nyall Dawson
b6a7a10703 Fix some more python formatting issues, remove more flake exceptions 2020-05-11 11:41:50 +10:00
Blottiere Paul
f7b325f931 Find PyQt5 sip files 2020-01-29 11:49:44 +01:00
Juergen E. Fischer
4464089487 auto-detect name of sip module used by PyQt5 2018-10-24 13:38:03 +02:00
lbartoletti
378191d249 OpenBSD patch for PyQt5 2018-01-29 03:39:06 -09:00
Loïc Bartoletti
8d4d08f8a0 Fix pathes for FreeBSD 2018-01-29 03:39:06 -09:00
Bas Couwenberg
81c5f25a7f Don't require Python 3 for Qt5.
Use separate ENABLE_PYTHON3 option for Python 3.
2016-03-16 10:55:49 +01:00
Matthias Kuhn
eeef84b1f7 Revert "Deduplicated FindPyQt(4|5).py"
This reverts commit 842c17c10b2112b0d92ab287d76e374900736065 which was
responsible for test timeouts for dubious reasons.
2015-11-17 13:57:11 +01:00
Matthias Kuhn
842c17c10b Deduplicated FindPyQt(4|5).py 2015-11-16 07:42:48 +01:00
Matthias Kuhn
0b6dd352c9 [py3] CMake updates to support Python3 and PyQt5 2015-11-16 07:42:47 +01:00