- Clean up installation of python files.

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1547 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Peter Lemenkov 17 years ago
parent 7f452944dd
commit e81fc2ac9c

@ -2,4 +2,4 @@ SET(sems_module_name conf_auth)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
PYTHON_SOURCES_COMPILE(conf_auth ivr)
PYTHON_SOURCES_COMPILE(conf_auth.py ivr)

@ -24,4 +24,4 @@ INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
PYTHON_SOURCES_COMPILE(py/log ivr)
PYTHON_SOURCES_COMPILE(py/log.py ivr)

@ -19,8 +19,8 @@ INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
PYTHON_SOURCES_COMPILE(mailbox ivr)
PYTHON_SOURCES_COMPILE(mailbox_query ivr)
PYTHON_SOURCES_COMPILE(imap_mailbox/MailboxURL ivr/imap_mailbox)
PYTHON_SOURCES_COMPILE(imap_mailbox/__init__ ivr/imap_mailbox)
PYTHON_SOURCES_COMPILE(imap_mailbox/imap4ext ivr/imap_mailbox)
PYTHON_SOURCES_COMPILE(mailbox.py ivr)
PYTHON_SOURCES_COMPILE(mailbox_query.py ivr)
PYTHON_SOURCES_COMPILE(imap_mailbox/MailboxURL.py ivr/imap_mailbox)
PYTHON_SOURCES_COMPILE(imap_mailbox/__init__.py ivr/imap_mailbox)
PYTHON_SOURCES_COMPILE(imap_mailbox/imap4ext.py ivr/imap_mailbox)

@ -8,4 +8,4 @@ INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
PYTHON_SOURCES_COMPILE(pin_collect ivr)
PYTHON_SOURCES_COMPILE(pin_collect.py ivr)

@ -29,4 +29,4 @@ INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
PYTHON_SOURCES_COMPILE(py/py_sems_log plug-in)
PYTHON_SOURCES_COMPILE(py/py_sems_log.py plug-in)

@ -11,4 +11,4 @@ INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
PYTHON_SOURCES_COMPILE(twit ivr)
PYTHON_SOURCES_COMPILE(twit.py ivr)

@ -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…
Cancel
Save