Commit 538f7511 authored by Ben Boeckel's avatar Ben Boeckel

pythongirderclient: add project and dependencies

parent 5565a587
......@@ -30,6 +30,9 @@ function (superbuild_find_projects var)
paraview
png
python
pythongirderclient
pythonrequests
pythonsix
qt4
remus
shiboken
......@@ -45,6 +48,11 @@ function (superbuild_find_projects var)
libxml2)
endif ()
if (WIN32)
list(APPEND projects
pythonsetuptools)
endif ()
option(USE_NONFREE_COMPONENTS "Enable the non-free parts of the superbuild" OFF)
mark_as_advanced(USE_NONFREE_COMPONENTS)
if (USE_NONFREE_COMPONENTS)
......
......@@ -9,6 +9,14 @@ foreach (cmb_plugin IN LISTS cmb_plugins_to_install)
endforeach ()
endforeach ()
set(python_modules)
if (pythongirderclient_enabled)
list(APPEND python_modules
six
requests
girder_client)
endif ()
foreach(program IN LISTS cmb_programs_to_install)
superbuild_apple_create_app(
"\${CMAKE_INSTALL_PREFIX}/${cmb_package}"
......@@ -34,6 +42,7 @@ foreach(program IN LISTS cmb_programs_to_install)
"${program}.app"
MODULES smtk
shiboken
${python_modules}
MODULE_DIRECTORIES
"${superbuild_install_location}/lib/python2.7/site-packages"
SEARCH_DIRECTORIES
......@@ -49,6 +58,13 @@ foreach(program IN LISTS cmb_programs_to_install)
"${superbuild_install_location}/Applications/paraview.app/Contents/Python"
SEARCH_DIRECTORIES
"${superbuild_install_location}/Applications/paraview.app/Contents/Libraries")
if (pythonrequests_enabled)
install(
FILES "${superbuild_install_location}/lib/python2.7/site-packages/requests/cacert.pem"
DESTINATION "${cmb_package}/${program}.app/Contents/Python/requests"
COMPONENT superbuild)
endif ()
endforeach ()
# FIXME: Install inside of each application?
......
superbuild_add_project_python(pythongirderclient
DEPENDS pythonsix pythonrequests)
superbuild_add_project_python(pythonrequests)
superbuild_add_project_python(pythonsix)
......@@ -20,6 +20,14 @@ foreach (plugin IN LISTS cmb_plugins_to_install)
"cmb-${cmb_version}/plugins/")
endforeach ()
set(python_modules)
if (pythongirderclient_enabled)
list(APPEND python_modules
six
requests
girder_client)
endif ()
superbuild_unix_install_python(
"${CMAKE_INSTALL_PREFIX}"
"cmb-${cmb_version}"
......@@ -27,6 +35,7 @@ superbuild_unix_install_python(
shiboken
paraview
vtk
${python_modules}
MODULE_DIRECTORIES
"${superbuild_install_location}/lib/python2.7/site-packages"
"${superbuild_install_location}/lib/paraview-${paraview_version}/site-packages"
......@@ -34,6 +43,13 @@ superbuild_unix_install_python(
"cmb-${cmb_version}"
"paraview-${paraview_version}")
if (pythonrequests_enabled)
install(
FILES "${superbuild_install_location}/lib/python2.7/site-packages/requests/cacert.pem"
DESTINATION "${cmb_package}/lib/python2.7/site-packages/requests"
COMPONENT superbuild)
endif ()
install(
FILES "${cmb_plugins_file}"
DESTINATION "bin"
......
superbuild_add_project_python(pythongirderclient
DEPENDS pythonsix pythonrequests pythonsetuptools)
superbuild_add_project_python(pythonsetuptools)
......@@ -60,3 +60,27 @@ if (USE_NONFREE_COMPONENTS)
GIT_REPOSITORY "https://github.com/robertmaynard/triangle.git"
GIT_TAG origin/master)
endif ()
superbuild_set_revision(pythonsix
URL "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz"
URL_MD5 34eed507548117b2ab523ab14b2f8b55)
superbuild_set_revision(pythonrequests
URL "https://pypi.python.org/packages/source/r/requests/requests-2.9.1.tar.gz"
URL_MD5 0b7f480d19012ec52bab78292efd976d)
superbuild_set_revision(pythonsix
URL "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz"
URL_MD5 34eed507548117b2ab523ab14b2f8b55)
superbuild_set_revision(pythonrequests
URL "https://pypi.python.org/packages/source/r/requests/requests-2.9.1.tar.gz"
URL_MD5 0b7f480d19012ec52bab78292efd976d)
superbuild_set_revision(pythonsetuptools
URL "https://pypi.python.org/packages/source/s/setuptools/setuptools-20.3.1.tar.gz"
URL_MD5 7e4ba5cdebc02710d3ab748c103fc673)
superbuild_set_revision(pythongirderclient
URL "https://pypi.python.org/packages/source/g/girder-client/girder-client-1.1.2.tar.gz"
URL_MD5 4cd5e0cab41337a41f45453d25193dcf)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment