Fixed cmake scripts to run python build/install. New script to run python scripts.

This commit is contained in:
Guilhem Lavaux 2012-11-01 17:03:25 -04:00
parent cd229df01f
commit f7ffe20b69
3 changed files with 24 additions and 2 deletions

View file

@ -2,4 +2,11 @@ SET(ENV{HDF5_DIR} ${HDF5_DIR})
SET(ENV{NETCDF4_DIR} ${NETCDF4_DIR})
SET(ENV{CPPFLAGS} ${PYTHON_CPPFLAGS})
SET(ENV{LDFLAGS} ${PYTHON_LDFLAGS})
execute_process(COMMAND ${PYTHON_EXECUTABLE} setup.py install --prefix=${TARGET_PATH})
execute_process(
COMMAND ${PYTHON_EXECUTABLE} setup.py install --prefix=${TARGET_PATH}
RESULT_VARIABLE RET_VALUE
)
IF(NOT ${RET_VALUE} EQUAL 0)
MESSAGE(FATAL_ERROR "Error in python install")
ENDIF(NOT ${RET_VALUE} EQUAL 0)