summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-02-26 08:29:02 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-02-27 17:15:01 (GMT)
commit7d6db93de9ffc6e6092fa722aaf9c057dadcd634 (patch)
tree76024748bb16158d3b3be5e82a782a2ce8f58f4e /Source/cmDocumentation.cxx
parente8e964f675dc2475e871a13bb5dae99ef7a40201 (diff)
downloadCMake-7d6db93de9ffc6e6092fa722aaf9c057dadcd634.zip
CMake-7d6db93de9ffc6e6092fa722aaf9c057dadcd634.tar.gz
CMake-7d6db93de9ffc6e6092fa722aaf9c057dadcd634.tar.bz2
FindPythonInterp: rework the version detection
There are versions out there that neither understand --version nor -V. Try a completely different approach: execute a small python script that prints the version number (and only that) in an easily reusable way using sys.version_info. This is documented to work since Python 2.0. Use sys.version for older versions, which is documented to exist since 1.5. If even that doesn't work then simply assume we are on 1.4.0.
Diffstat (limited to 'Source/cmDocumentation.cxx')
0 files changed, 0 insertions, 0 deletions