2010-04-20 Noel O'Boyle

* scripts/CMakeLists.txt: Handle local and global Python installs
	in a (to me) sensible way
This commit is contained in:
Noel O'Boyle
2010-04-20 20:32:11 +00:00
parent 637853cc83
commit b792bb07db
2 changed files with 14 additions and 1 deletions
+5
View File
@@ -1,3 +1,8 @@
2010-04-20 Noel O'Boyle
* scripts/CMakeLists.txt: Handle local and global Python installs
in a (to me) sensible way
2010-04-20 Chris Morley
* src/ops/loader.cpp: parse of plugindefines.txt to allow # as
+9 -1
View File
@@ -64,7 +64,15 @@ if(NOT WIN32)
COMMAND ${CMAKE_COMMAND} -E remove ob.py
VERBATIM)
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${openbabel_SOURCE_DIR}/scripts/python/setup.py install --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts)")
if (${PYTHON_PREFIX})
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripts/python/setup.py install --prefix=${PYTHON_PREFIX} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/scripts)")
else (${PYTHON_PREFIX})
if (${CMAKE_INSTALL_PREFIX} EQUAL "/usr/local")
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripts/python/setup.py install WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/scripts)")
else (${CMAKE_INSTALL_PREFIX} EQUAL "/usr/local")
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripts/python/setup.py install --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/scripts)")
endif (${CMAKE_INSTALL_PREFIX} EQUAL "/usr/local")
endif (${PYTHON_PREFIX})
else(NOT WIN32)
add_library(_openbabel MODULE openbabel-python.cpp)