Skip to content

Commit

Permalink
Disabled PythonProbe when not compiling for Windows
Browse files Browse the repository at this point in the history
The message "WARNING: PYTHONHOME not set. The Python plugin will not be
available." is confusing, since on Linux the probe always fails, but the
Python plugin will generally be available given that it will be detected
through PkgConfigProbe instead.
  • Loading branch information
bjorn committed Nov 13, 2023
1 parent ce8fd77 commit a080194
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qbs/imports/PythonProbe.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import qbs.Utilities

Probe {
id: pythonDllProbe

condition: qbs.targetOS.contains("windows")

property string pythonDir: pythonInstallDir // Input
property string buildVariant: qbs.buildVariant // Input
property string fileNamePrefix // Output
Expand Down

0 comments on commit a080194

Please sign in to comment.