1 From a0670dd53c9d3b444656917e0b663364f6f20aa5 Mon Sep 17 00:00:00 2001
2 From: "Darryl L. Pierce" <mcpierce@gmail.com>
3 Date: Mon, 27 Oct 2014 15:01:52 -0400
4 Subject: [PATCH] PROTON-731: Installing Python requires Proton be installed
7 The CHECK_SYSINSTALL_PYTHON variable was not being set, so it's now
8 being set by default but can be overridden from the command line.
10 Also changed the PYTHON_SITEARCH_PACKAGES variable a cache done that can
11 also be overridden from the command line as well.
13 proton-c/bindings/python/CMakeLists.txt | 4 +++-
14 1 file changed, 3 insertions(+), 1 deletion(-)
16 diff --git a/proton-c/bindings/python/CMakeLists.txt b/proton-c/bindings/python/CMakeLists.txt
17 index b8cdb57..ff8c706 100644
18 --- a/proton-c/bindings/python/CMakeLists.txt
19 +++ b/proton-c/bindings/python/CMakeLists.txt
22 set(CMAKE_SWIG_FLAGS "-threads")
24 +set(CHECK_SYSINSTALL_PYTHON ON CACHE INTERNAL "")
26 include_directories (${PYTHON_INCLUDE_PATH})
28 SET_SOURCE_FILES_PROPERTIES(cproton.i PROPERTIES CPLUSPLUS ON)
29 @@ -74,7 +76,7 @@ if (CHECK_SYSINSTALL_PYTHON)
32 # install the bindings using the CMAKE path variables:
33 - set (PYTHON_SITEARCH_PACKAGES ${BINDINGS_DIR}/python)
34 + set (PYTHON_SITEARCH_PACKAGES ${BINDINGS_DIR}/python CACHE INTERNAL "")
36 install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m py_compile cproton.py
37 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")