Slicer: 2145-support-for-installing-extension-from-file 9a1d72e0

Author Committer Branch Timestamp Parent
jcfr jcfr 2145-support-for-installing-extension-from-file 2013-04-05 12:09:51 2145-support-for-installing-extension-from-file fec34884
Affected Issues 0003052: cannot load any sample data - urllib not build correctly
Changeset

BUG: Fix import of urllib MacOsx by updating CMake'ified python

Thanks to Steve Pieper for reporting the issue.

Following Slicer commit r21863 and commit r21867, CMake'ified python is
used to build Slicer. This commit update the python project so that the
python extension _scproxy is also built.

// ---------
The error being fixed was:

File "/Users/pieper/slicer4/latest/Slicer-superbuild/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/SampleData.py", line 192, in downloadFile
import urllib
File "/Users/pieper/slicer4/latest/Slicer-superbuild/python-install/lib/python2.7/urllib.py", line 1379, in <module>
from _scproxy import _get_proxy_settings, _get_proxies
ImportError: No module named _scproxy
// ---------

The associated commit in CMake'ified python is:
https://github.com/davidsansome/python-cmake-buildsystem/commit/a813b59647eb40b8c6a3411eee83268ae98c9452

See http://na-mic.org/Bug/view.php?id=3052
Fixes 0003052

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

mod - SuperBuild/External_python.cmake Diff File