Import 2017-06-07 23:51:09: master 900fc739

Author Committer Branch Timestamp Parent
jcfr jcfr master 2017-05-29 16:42:52 master 389b8fbe
Changeset

ENH: cmake: Check package availability when building against system python

This commit implements the check looking for required python modules
when building against system version of python.

For example, assuming that all required packages are installed in
a python virtual environment named "slicer":

$ cmake -DQT_QMAKE_EXECUTABLE:FILEPATH=/path/to/bin/qmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DSlicer_USE_SYSTEM_python:BOOL=1 \
../Slicer

would output text like this one:

[...]
-- SuperBuild - python-pyparsing => Requires python[INCLUDED],
-- SuperBuild - python-pyparsing[OK] (SYSTEM)
-- PYPARSING_PATH: /home/jcfr/.virtualenvs/slicer/local/lib/python2.7/site-packages
-- PYPARSING_VERSION: 2.2.0
-- SuperBuild - python-packaging[OK] (SYSTEM)
-- PACKAGING_PATH: /home/jcfr/.virtualenvs/slicer/local/lib/python2.7/site-packages/packaging
-- PACKAGING_VERSION: 16.8
-- SuperBuild - python-six => Requires python[INCLUDED],
-- SuperBuild - python-six[OK] (SYSTEM)
-- SIX_PATH: /home/jcfr/.virtualenvs/slicer/local/lib/python2.7/site-packages
-- SIX_VERSION: 1.10.0
[...]

git-svn-id: http://svn.slicer.org/Slicer4/trunk@26055 3bd1e089-480b-0410-8dfb-8563597acbee

add - CMake/ExternalProjectDependencyForPython.cmake Diff File
mod - CMake/UseSlicer.cmake.in Diff File
mod - CMakeLists.txt Diff File
mod - SuperBuild/External_NUMPY.cmake Diff File
mod - SuperBuild/External_python-GitPython.cmake Diff File
mod - SuperBuild/External_python-PyGithub.cmake Diff File
mod - SuperBuild/External_python-appdirs.cmake Diff File
mod - SuperBuild/External_python-chardet.cmake Diff File
mod - SuperBuild/External_python-couchdb.cmake Diff File
mod - SuperBuild/External_python-gitdb.cmake Diff File
mod - SuperBuild/External_python-nose.cmake Diff File
mod - SuperBuild/External_python-packaging.cmake Diff File
mod - SuperBuild/External_python-pip.cmake Diff File
mod - SuperBuild/External_python-pydicom.cmake Diff File
mod - SuperBuild/External_python-pyparsing.cmake Diff File
mod - SuperBuild/External_python-setuptools.cmake Diff File
mod - SuperBuild/External_python-six.cmake Diff File
mod - SuperBuild/External_python-smmap.cmake Diff File
mod - SuperBuild/External_python-wheel.cmake Diff File
mod - SuperBuild/External_python.cmake Diff File