diff options
-rw-r--r-- | setup.py | 4 | ||||
-rw-r--r-- | utils.py | 7 |
2 files changed, 6 insertions, 5 deletions
@@ -905,8 +905,8 @@ class pyside_build(_build): clangBinDir, clangDir[1])) additionalPaths.append(clangBinDir) else: - log.error("Failed to detect Clang by checking " - "LLVM_INSTALL_DIR, CLANG_INSTALL_DIR, llvm-config") + raise DistutilsSetupError("Failed to detect Clang when checking " + "LLVM_INSTALL_DIR, CLANG_INSTALL_DIR, llvm-config") update_env_path(additionalPaths) @@ -775,9 +775,10 @@ def detectClang(): if not clangDir: source = findLlvmConfig() try: - output = run_process_output([source, '--prefix']) - if output: - clangDir = output[0] + if source is not None: + output = run_process_output([source, '--prefix']) + if output: + clangDir = output[0] except OSError: pass if clangDir: |