From 0c350ea23a54b24303b195862e516582044d297b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sun, 25 May 2025 19:19:55 +0200 Subject: [PATCH] Fix issue with PyQt version. --- mo2_python.cmake | 3 ++- mo2_versions.cmake | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mo2_python.cmake b/mo2_python.cmake index 1ef8419..c8af496 100644 --- a/mo2_python.cmake +++ b/mo2_python.cmake @@ -57,6 +57,7 @@ function(mo2_python_pip_install TARGET) -m pip install ${pip_install_arguments} + --upgrade --disable-pip-version-check --isolated --no-cache-dir @@ -86,7 +87,7 @@ function(mo2_python_install_pyqt) set_target_properties(PyQt6 PROPERTIES FOLDER autogen) mo2_python_pip_install(PyQt6 NO_FORCE PACKAGES - PyQt${MO2_QT_VERSION_MAJOR}==${MO2_QT_VERSION} + PyQt${MO2_QT_VERSION_MAJOR}==${MO2_PYQT_VERSION} sip==${MO2_SIP_VERSION}) endfunction() diff --git a/mo2_versions.cmake b/mo2_versions.cmake index 9321872..41e7954 100644 --- a/mo2_versions.cmake +++ b/mo2_versions.cmake @@ -22,7 +22,8 @@ endif() set(MO2_PYTHON_VERSION "3.12") -set(MO2_PYQT_VERSION ${MO2_QT_VERSION}) +# TODO: there is no prebuilt for 6.7.3, so we stay on 6.7.1 for now +set(MO2_PYQT_VERSION "6.7.1") set(MO2_SIP_VERSION "6.8.6") # mark as included