Skip to content

Upgrade to Python 2.7.10

Sam Horvath requested to merge github/fork/msmolens/python-2.7.10 into master

Created by: msmolens

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

Merge request reports

Loading