mirror of https://github.com/sipwise/sems.git
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1547 8eb893ce-cfd4-0310-b710-fb5ebe64c474sayer/1.4-spce2.6
parent
7f452944dd
commit
e81fc2ac9c
@ -1,7 +1,7 @@
|
||||
FUNCTION(PYTHON_SOURCES_COMPILE python_files sems_python_dir)
|
||||
FOREACH (python_file ${python_files})
|
||||
EXECUTE_PROCESS(COMMAND python -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}.py')")
|
||||
EXECUTE_PROCESS(COMMAND python -O -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}.py')")
|
||||
INSTALL (FILES ${python_file}.py ${python_file}.pyc ${python_file}.pyo DESTINATION ${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/${sems_python_dir})
|
||||
EXECUTE_PROCESS(COMMAND python -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}')")
|
||||
EXECUTE_PROCESS(COMMAND python -O -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}')")
|
||||
INSTALL (FILES ${python_file} ${python_file}c ${python_file}o DESTINATION ${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/${sems_python_dir})
|
||||
ENDFOREACH()
|
||||
ENDFUNCTION()
|
||||
|
||||
Loading…
Reference in new issue