summaryrefslogtreecommitdiff
path: root/swig
diff options
context:
space:
mode:
authorArvin Schnell <aschnell@suse.de>2008-01-28 16:28:31 +0000
committerArvin Schnell <aschnell@suse.de>2008-01-28 16:28:31 +0000
commitf15b92b90720479d81252ee589aee90ececbe9f3 (patch)
tree2e40cafd44258818456da4ca3d745042b08d56fe /swig
parentfdf7a3b738e6ebc50f71bd8c0463542024c7023c (diff)
downloadlibzypp-bindings-f15b92b90720479d81252ee589aee90ececbe9f3.tar.gz
libzypp-bindings-f15b92b90720479d81252ee589aee90ececbe9f3.tar.bz2
libzypp-bindings-f15b92b90720479d81252ee589aee90ececbe9f3.zip
- avoid newline right away when printing python lib path
Diffstat (limited to 'swig')
-rw-r--r--swig/python/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/swig/python/CMakeLists.txt b/swig/python/CMakeLists.txt
index 051e791..cbdb87a 100644
--- a/swig/python/CMakeLists.txt
+++ b/swig/python/CMakeLists.txt
@@ -4,8 +4,7 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing")
FIND_PACKAGE(PythonInterp REQUIRED)
FIND_PACKAGE(PythonLibs REQUIRED)
-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; print sysconfig.get_python_lib()" OUTPUT_VARIABLE PYTHON_LIB_PATH)
-STRING(REPLACE "\n" "" PYTHON_LIB_PATH "${PYTHON_LIB_PATH}")
+EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib())" OUTPUT_VARIABLE PYTHON_LIB_PATH)
MESSAGE(STATUS "Python executable: ${PYTHON_EXECUTABLE}")
MESSAGE(STATUS "Python lib path: ${PYTHON_LIB_PATH}")