From ce60dc3e8bbb9d2a41d584588dc8a4bc1a4a8509 Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Fri, 5 Jul 2013 11:06:33 -0400 Subject: [PATCH] BUG: Manually download distribute required for SimpleITK Download distribute version required by SimpleITK's build directory to be automatically detected by distribute_setup.py. The distribute download from pipy has moved to a https URL. SSL is not supported by Slicer's version of python ( and likely will not due to export control issues ). So we moved the download to midas and manually get it. --- SuperBuild/SimpleITK_install_step.cmake.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/SuperBuild/SimpleITK_install_step.cmake.in b/SuperBuild/SimpleITK_install_step.cmake.in index eacab4fe6..c799ccd02 100644 --- a/SuperBuild/SimpleITK_install_step.cmake.in +++ b/SuperBuild/SimpleITK_install_step.cmake.in @@ -3,9 +3,17 @@ set(ENV{LD_LIBRARY_PATH} "@slicer_PYTHON_SHARED_LIBRARY_DIR@") set(ENV{DYLD_LIBRARY_PATH} "@slicer_PYTHON_SHARED_LIBRARY_DIR@") set(ENV{VS_UNICODE_OUTPUT} "") +# HACK +# Slicer's python does not support https, where pipy has +# distribute. So we manually download the specific version into the +# SimpleITK build tree. +file(DOWNLOAD "http://midas3.kitware.com/midas/download/item/208573/distribute-0.6.28.tar.gz" + "@CMAKE_CURRENT_BINARY_DIR@/SimpleITK-build/Wrapping/distribute-0.6.28.tar.gz" + EXPECTED_MD5 b400b532e33f78551e6847c1f5965e56 + ) + # The working path must be set to the location of the SimpleITK.py # file so that it will be picked up by distuils setup, and installed execute_process( WORKING_DIRECTORY "@CMAKE_CURRENT_BINARY_DIR@/SimpleITK-build/Wrapping" COMMAND "@slicer_PYTHON_EXECUTABLE@" "@CMAKE_CURRENT_BINARY_DIR@/SimpleITK-build/Wrapping/PythonPackage/setup.py" install ) - -- GitLab