From: vsr Date: Wed, 31 Jul 2013 12:50:13 +0000 (+0000) Subject: Fix error with incorrect installation of python files: /lib/python/site-packa... X-Git-Tag: V2_1_0rc1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe38024ff07e1a386cf0cb29104e3c245a84c791;p=tools%2Flibbatch.git Fix error with incorrect installation of python files: /lib/python/site-packages -> /lib/python/site-packages --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a965e0..0f19c91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,6 +69,7 @@ IF (LIBBATCH_PYTHON_WRAPPING) FIND_PACKAGE(LibbatchPython REQUIRED) FIND_PACKAGE(LibbatchSWIG REQUIRED) + SET(PYTHON_VERSION "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") SET(LIBBATCH_PYTHONPATH lib/python${PYTHON_VERSION}/site-packages) ENDIF() diff --git a/src/Python/CMakeLists.txt b/src/Python/CMakeLists.txt index a56f5fb..17e4444 100644 --- a/src/Python/CMakeLists.txt +++ b/src/Python/CMakeLists.txt @@ -50,7 +50,6 @@ SET(SWIG_MODULE_libbatch_EXTRA_DEPS ${SWIG_LB_DPYS}) SWIG_ADD_MODULE(libbatch python ${SWIG_SRC_FILE}) SWIG_LINK_LIBRARIES(libbatch batch ${PYTHON_LIBRARIES}) -SET(PYTHON_VERSION "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") INSTALL(TARGETS ${SWIG_MODULE_libbatch_REAL_NAME} DESTINATION ${LIBBATCH_PYTHONPATH}) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libbatch.py DESTINATION ${LIBBATCH_PYTHONPATH})