Permalink
Browse files

BUG: install SimpleITK.py with setup.py

The SimpleITK.py gets picked up by distutils.setup, by  being in the
current workings directory paths. Previous the working directory was
not being set and the SimpleITK.py files was not being installed into
Slicers python's site-package during installation.
  • Loading branch information...
blowekamp committed Jun 20, 2012
1 parent 623fa2e commit f52634208648e982ff55f0132ef40df5e069fd06
Showing with 3 additions and 0 deletions.
  1. +3 −0 SuperBuild/SimpleITK_install_step.cmake.in
@@ -3,6 +3,9 @@ set(ENV{LD_LIBRARY_PATH} "@CMAKE_CURRENT_BINARY_DIR@/python-build/lib")
set(ENV{DYLD_LIBRARY_PATH} "@CMAKE_CURRENT_BINARY_DIR@/python-build/lib")
set(ENV{VS_UNICODE_OUTPUT} "")
+# 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 )

0 comments on commit f526342

Please sign in to comment.