Skip to content

Upgrade to Python 2.7.10

Created by: msmolens

This PR incorporates feedback from and supersedes #331.

This change upgrades Slicer's Python from version 2.7.3 to version 2.7.10. The newer Python version fixes a number of build warnings seen when building Slicer with Python 2.7.3 in Visual Studio 2013, like:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xtgmath.h(190): warning C4273: '_hypot' : inconsistent dll linkage [C:\dev\SN\VTKv6-build\Wrapping\PythonCore\vtkWrappingPythonCore.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\math.h(538) : see previous definition of '_hypot'

and:

C:\dev\SN\python-2.7.3\include\pymath.h(22): warning C4273: 'round' : inconsistent dll linkage [C:\dev\SN\python-build\CMakeBuild\libpython\libpython-shared.vcxproj]
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\math.h(516) : see previous definition of 'round'

This change also updates the following external packages:

  • python-cmake-buildsystem: to support building Python 2.7.10 on all platforms
  • CTK/PythonQt: to fix crashes on exit in Python/PythonQt with Python >2.7.3

This change has been manually tested on:

  • Windows (Visual Studio 2008, Visual Studio 2013)
  • Ubuntu 14.04.3
  • Mac OS X 10.6.8

Merge request reports