diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2012-02-26 08:29:02 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-02-27 17:15:01 (GMT) |
commit | 7d6db93de9ffc6e6092fa722aaf9c057dadcd634 (patch) | |
tree | 76024748bb16158d3b3be5e82a782a2ce8f58f4e /Source/cmDocumentation.cxx | |
parent | e8e964f675dc2475e871a13bb5dae99ef7a40201 (diff) | |
download | CMake-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