2017-05-08 18:51:29 +01:00
|
|
|
|
2017-05-27 22:54:00 +01:00
|
|
|
set (EXTRAS
|
2017-06-19 19:02:36 +01:00
|
|
|
MANIFEST.in
|
|
|
|
YAP_KERNEL.md
|
|
|
|
)
|
2017-05-08 18:51:29 +01:00
|
|
|
|
2017-05-27 22:54:00 +01:00
|
|
|
set (PYTHON_SOURCES
|
2017-06-19 19:02:36 +01:00
|
|
|
yap_kernel_launcher.py
|
|
|
|
data_kernelspec/kernel.json
|
|
|
|
yap_kernel/__init__.py
|
|
|
|
yap_kernel/__main__.py
|
|
|
|
yap_kernel/_version.py
|
|
|
|
yap_kernel/codeutil.py
|
|
|
|
yap_kernel/connect.py
|
2017-05-27 22:54:00 +01:00
|
|
|
yap_kernel/datapub.py
|
2017-06-19 19:02:36 +01:00
|
|
|
yap_kernel/displayhook.py
|
|
|
|
yap_kernel/embed.py
|
|
|
|
yap_kernel/eventloops.py
|
|
|
|
yap_kernel/heartbeat.py
|
|
|
|
yap_kernel/interactiveshell.py
|
|
|
|
yap_kernel/iostream.py
|
|
|
|
yap_kernel/jsonutil.py
|
|
|
|
yap_kernel/kernelapp.py
|
|
|
|
yap_kernel/kernelbase.py
|
|
|
|
yap_kernel/kernelspec.py
|
|
|
|
yap_kernel/log.py
|
|
|
|
yap_kernel/parentpoller.py
|
|
|
|
yap_kernel/pickleutil.py
|
|
|
|
yap_kernel/serialize.py
|
|
|
|
yap_kernel/yapkernel.py
|
|
|
|
yap_kernel/zmqshell.py
|
|
|
|
yap_kernel/comm/__init__.py
|
|
|
|
yap_kernel/comm/comm.py
|
|
|
|
yap_kernel/comm/manager.py
|
|
|
|
yap_kernel/gui/__init__.py
|
|
|
|
yap_kernel/gui/gtk3embed.py
|
|
|
|
yap_kernel/gui/gtkembed.py
|
|
|
|
yap_kernel/inprocess/__init__.py
|
|
|
|
yap_kernel/inprocess/blocking.py
|
|
|
|
yap_kernel/inprocess/channels.py
|
|
|
|
yap_kernel/inprocess/client.py
|
|
|
|
yap_kernel/inprocess/ipkernel.py
|
|
|
|
yap_kernel/inprocess/manager.py
|
|
|
|
yap_kernel/inprocess/socket.py
|
|
|
|
yap_kernel/pylab/__init__.py
|
|
|
|
yap_kernel/pylab/backend_inline.py
|
|
|
|
yap_kernel/pylab/config.py
|
|
|
|
)
|
2017-05-08 18:51:29 +01:00
|
|
|
|
2017-06-19 19:02:36 +01:00
|
|
|
configure_file(setup.py.in ${CMAKE_CURRENT_BINARY_DIR}/setup.py)
|
2016-08-18 08:17:04 +01:00
|
|
|
|
2017-08-21 12:36:48 +01:00
|
|
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources )
|
|
|
|
file( COPY ${CMAKE_SOURCE_DIR}/docs/icons/yap_32x32x32.png
|
|
|
|
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources/ )
|
|
|
|
file( RENAME ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources/yap_32x32x32.png ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources/logo-32x32.png )
|
|
|
|
file( COPY ${CMAKE_SOURCE_DIR}/docs/icons/yap_64x64x32.png DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources )
|
|
|
|
file( RENAME ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources/yap_64x64x32.png ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources/logo-64x64.png )
|
|
|
|
file( COPY ${CMAKE_CURRENT_SOURCE_DIR}/kernel.js DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources/ )
|
2017-05-27 22:54:00 +01:00
|
|
|
file( COPY ${CMAKE_SOURCE_DIR}/misc/editors/prolog.js DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/yap_kernel/resources/)
|
2016-08-18 08:17:04 +01:00
|
|
|
|
2017-05-27 22:54:00 +01:00
|
|
|
set(SETUP_PY ${CMAKE_CURRENT_BINARY_DIR}/setup.py)
|
2017-05-08 18:51:29 +01:00
|
|
|
|
2017-05-27 22:54:00 +01:00
|
|
|
add_custom_target( YAPKernel ALL
|
2017-08-09 08:15:51 +01:00
|
|
|
COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} build sdist bdist
|
2017-06-19 19:02:36 +01:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
2016-08-18 08:17:04 +01:00
|
|
|
|
2017-08-09 08:15:51 +01:00
|
|
|
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m pip install --ignore-installed --no-deps .
|
2017-05-27 22:54:00 +01:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")
|
2016-08-18 08:17:04 +01:00
|
|
|
|
2017-06-19 19:02:36 +01:00
|
|
|
# install(FILES jupyter.yap
|
|
|
|
# DESTINATION ${libpl} )
|