2005-12-14 13:51:08 -05:00
|
|
|
# - Find python interpreter
|
2005-07-15 08:36:33 -04:00
|
|
|
# This module finds if Python interpreter is installed and determines where the
|
|
|
|
# executables are. This code sets the following variables:
|
|
|
|
#
|
2005-12-15 14:17:43 -05:00
|
|
|
# PYTHONINTERP_FOUND - Was the Python executable found
|
|
|
|
# PYTHON_EXECUTABLE - path to the Python interpreter
|
2005-07-15 08:36:33 -04:00
|
|
|
#
|
|
|
|
|
|
|
|
FIND_PROGRAM(PYTHON_EXECUTABLE
|
2006-09-27 13:30:18 -04:00
|
|
|
NAMES python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python
|
2005-07-15 08:36:33 -04:00
|
|
|
PATHS
|
2006-09-27 13:30:18 -04:00
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.5\\InstallPath]
|
2005-07-15 11:48:04 -04:00
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.4\\InstallPath]
|
2005-07-15 08:36:33 -04:00
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath]
|
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.2\\InstallPath]
|
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.1\\InstallPath]
|
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.0\\InstallPath]
|
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\1.6\\InstallPath]
|
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\1.5\\InstallPath]
|
|
|
|
)
|
|
|
|
|
2005-07-15 11:45:42 -04:00
|
|
|
SET(PYTHONINTERP_FOUND)
|
|
|
|
IF(PYTHON_EXECUTABLE)
|
|
|
|
SET(PYTHONINTERP_FOUND ON)
|
|
|
|
ENDIF(PYTHON_EXECUTABLE)
|
|
|
|
|
2005-07-15 08:36:33 -04:00
|
|
|
|