This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/python/yap_kernel/CMakeLists.txt

45 lines
1.4 KiB
CMake
Raw Normal View History

2017-05-08 18:51:29 +01:00
set (PYTHON_SOURCES
__main__.py
__init__.py
setup.py
_version.py
interactiveshell.py
kernelapp.py
kernelspec.py
yapkernel.py )
configure_file("setup.py" ${CMAKE_CURRENT_BINARY_DIR}/setup.py)
configure_file("MANIFEST.in" ${CMAKE_CURRENT_BINARY_DIR}/MANIFEST.in)
foreach(i ${PYTHON_SOURCES})
configure_file(${i} ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/${i})
endforeach()
configure_file("_version.py" ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/_version.py)
configure_file("YAP_KERNEL.md" ${CMAKE_CURRENT_BINARY_DIR}/README)
configure_file("${CMAKE_SOURCE_DIR}/docs/icons/yap_32x32x32.png" ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources/logo-32x32.png)
configure_file("${CMAKE_SOURCE_DIR}/docs/icons/yap_64x64x32.png" ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources/logo-64x64.png)
configure_file("${CMAKE_SOURCE_DIR}/misc/editors/prolog.js" ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources/prolog.js)
2016-08-18 08:17:04 +01:00
set(SETUP_PY "${CMAKE_CURRENT_BINARY_DIR}/setup.py")
2017-05-08 18:51:29 +01:00
set( PYTHON_INSTALL sdist bdist_wheel)
add_custom_target( YAPKernel ALL
)
2016-08-18 08:17:04 +01:00
2017-05-08 18:51:29 +01:00
add_custom_command (TARGET YAPKernel
COMMAND ${PYTHON_EXECUTABLE} setup.py clean sdist bdist_wheel
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS libYap ${SWIG_MODULE_Py2YAP_REAL_NAME}
2016-08-18 08:17:04 +01:00
2017-05-08 18:51:29 +01:00
)
2016-08-18 08:17:04 +01:00
2017-05-08 18:51:29 +01:00
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m pip install --no-index -f dist yap_kernel")
2017-02-20 14:37:26 +00:00
2017-05-08 18:51:29 +01:00
install(FILES jupyter.yap
DESTINATION ${libpl}
)
2016-08-18 08:17:04 +01:00