You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2019/08/12 16:55:12 UTC
[qpid-proton] branch master updated: PROTON-2087: Fix the logic for
detecting python modules
This is an automated email from the ASF dual-hosted git repository.
astitcher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/master by this push:
new 41378d8 PROTON-2087: Fix the logic for detecting python modules
41378d8 is described below
commit 41378d808d82a44400cf8c14e83105647a9807d6
Author: Andrew Stitcher <as...@apache.org>
AuthorDate: Mon Aug 12 12:54:31 2019 -0400
PROTON-2087: Fix the logic for detecting python modules
---
tools/cmake/Modules/CheckPythonModule.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/cmake/Modules/CheckPythonModule.cmake b/tools/cmake/Modules/CheckPythonModule.cmake
index 9e94ec3..bd171a7 100644
--- a/tools/cmake/Modules/CheckPythonModule.cmake
+++ b/tools/cmake/Modules/CheckPythonModule.cmake
@@ -37,7 +37,7 @@
# macro, usually by using find_package(PythonInterp).
macro (CHECK_PYTHON_MODULE MODULE VARIABLE)
- if (NOT DEFINED "${VARIABLE}" AND DEFINED "PYTHON_EXECUTABLE")
+ if (NOT ${VARIABLE} AND PYTHON_EXECUTABLE)
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "import sys, pkgutil; sys.exit(0 if pkgutil.find_loader('${MODULE}') else 1)"
RESULT_VARIABLE RESULT)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org