Python: show warnings if pip or venv is missing

Change-Id: Ib38c1eb3b0f31d6988d3a5f084ac6eda08ec0619
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2023-11-22 11:09:41 +01:00
parent 67b7835c25
commit f4bf7c5b00
4 changed files with 51 additions and 13 deletions

View File

@@ -391,7 +391,7 @@ PythonBuildConfigurationFactory::PythonBuildConfigurationFactory()
base.typeName = Tr::tr("Global Python");
base.showBuildDirConfigWidget = false;
if (isVenvPython(python->command))
if (isVenvPython(python->command) || !venvIsUsable(python->command))
return QList<BuildInfo>{base};
base.enabledByDefault = false;