You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2013/10/31 20:56:46 UTC

svn commit: r1537604 - /qpid/proton/trunk/proton-c/bindings/python/CMakeLists.txt

Author: rhs
Date: Thu Oct 31 19:56:45 2013
New Revision: 1537604

URL: http://svn.apache.org/r1537604
Log:
don't override PYTHON_SITEARCH_PACKAGES if specified by the user

Modified:
    qpid/proton/trunk/proton-c/bindings/python/CMakeLists.txt

Modified: qpid/proton/trunk/proton-c/bindings/python/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/python/CMakeLists.txt?rev=1537604&r1=1537603&r2=1537604&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/python/CMakeLists.txt (original)
+++ qpid/proton/trunk/proton-c/bindings/python/CMakeLists.txt Thu Oct 31 19:56:45 2013
@@ -30,10 +30,12 @@ set_target_properties(_cproton
 
 find_package(PythonInterp REQUIRED)
 
-execute_process(COMMAND ${PYTHON_EXECUTABLE}
-                -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)"
-                OUTPUT_VARIABLE PYTHON_SITEARCH_PACKAGES
-                OUTPUT_STRIP_TRAILING_WHITESPACE)
+if (NOT PYTHON_SITEARCH_PACKAGES)
+   execute_process(COMMAND ${PYTHON_EXECUTABLE}
+                           -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)"
+                           OUTPUT_VARIABLE PYTHON_SITEARCH_PACKAGES
+                           OUTPUT_STRIP_TRAILING_WHITESPACE)
+endif ()
 
 install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m py_compile cproton.py
                               WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org