Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.5
-
None
Description
Building the WebEngine requires the html5lib python package.
I installed a python3 virtual environment with html5lib installed in this virtual env.
But Qt keeps telling me that html5lib is not installed.
This is because the build system is looking for html5 in the python3 system installation first and not in the virtual environment.
I attached a patch which changes the order of python search for html5lib.
From 440f5860400b4c652d9568085446c2126aa9fcf4 Mon Sep 17 00:00:00 2001 From: Yann Collette <ycollette@adobe.com> Date: Tue, 21 Nov 2023 10:58:02 +0100 Subject: [PATCH] fix python3 detection for webengine --- qtwebengine/configure.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qtwebengine/configure.cmake b/qtwebengine/configure.cmake index c217175b09..2e919b60c2 100644 --- a/qtwebengine/configure.cmake +++ b/qtwebengine/configure.cmake @@ -11,7 +11,11 @@ if(QT_CONFIGURE_RUNNING) else() find_package(Ninja 1.7.2) find_package(Gn ${QT_REPO_MODULE_VERSION} EXACT) - find_program(Python3_EXECUTABLE NAMES python3 HINTS $ENV{PYTHON3_PATH}) + set(Python3_FIND_VIRTUALENV FIRST) + set(Python3_FIND_FRAMEWORK LAST) + set(Python3_FIND_REGISTRY LAST) + set(Python3_FIND_STRATEGY LOCATION) + find_package(Python3 REQUIRED COMPONENTS Interpreter) if(NOT Python3_EXECUTABLE) find_package(Python3 3.6) endif() -- 2.42.0