diff options
-rw-r--r-- | qtdeclarative.pro | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qtdeclarative.pro b/qtdeclarative.pro index 9ecfad6f75..0e746c3c65 100644 --- a/qtdeclarative.pro +++ b/qtdeclarative.pro @@ -1,3 +1,10 @@ CONFIG += tests_need_tools examples_need_tools load(qt_parts) +!python_available { + py_out = $$system('python -c "print(1)"') + !equals(py_out, 1): error("Building QtQml requires Python version 2.") + tmp = python_available + CONFIG += $$tmp + cache(CONFIG, add, tmp) +} |