2001-05-11 18:27:46 +04:00
|
|
|
#
|
|
|
|
# This module finds if Python is installed and determines where the
|
|
|
|
# include files and libraries are. It also determines what the name of
|
|
|
|
# the library is. This code sets the following variables:
|
|
|
|
#
|
|
|
|
# PYTHON_LIBRARY = the full path to the library found
|
|
|
|
# PYTHON_INCLUDE_PATH = the path to where tcl.h can be found
|
|
|
|
# PYTHON_DEBUG_LIBRARY = the full path to the debug library found
|
|
|
|
#
|
|
|
|
|
2001-11-30 18:23:00 +03:00
|
|
|
IF(WIN32)
|
|
|
|
FIND_LIBRARY(PYTHON_DEBUG_LIBRARY
|
|
|
|
NAMES python python21_d python20_d
|
|
|
|
PATHS
|
2002-11-14 17:38:45 +03:00
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.2\\InstallPath]/libs/Debug
|
2001-11-30 18:23:00 +03:00
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.1\\InstallPath]/libs/Debug
|
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.0\\InstallPath]/libs/Debug
|
2002-11-14 17:38:45 +03:00
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.2\\InstallPath]/libs
|
2001-11-30 18:23:00 +03:00
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.1\\InstallPath]/libs
|
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.0\\InstallPath]/libs
|
|
|
|
)
|
|
|
|
ENDIF(WIN32)
|
2001-05-11 18:27:46 +04:00
|
|
|
|
2001-05-11 21:58:35 +04:00
|
|
|
FIND_LIBRARY(PYTHON_LIBRARY
|
2002-06-10 16:53:36 +04:00
|
|
|
NAMES python python21 python2.1 python20 python2.0 python1.5 python15 python22 python2.2
|
2001-05-11 18:27:46 +04:00
|
|
|
PATHS
|
|
|
|
/usr/lib
|
2002-11-14 17:38:45 +03:00
|
|
|
/usr/lib/python2.2/config
|
2001-07-16 05:10:10 +04:00
|
|
|
/usr/lib/python2.1/config
|
|
|
|
/usr/lib/python2.0/config
|
2002-11-14 17:38:45 +03:00
|
|
|
/usr/lib/python1.5/config
|
2001-05-11 18:27:46 +04:00
|
|
|
/usr/local/lib
|
2002-11-14 17:38:45 +03:00
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.2\\InstallPath]/libs
|
2001-07-17 17:54:05 +04:00
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.1\\InstallPath]/libs
|
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.0\\InstallPath]/libs
|
2001-05-11 18:27:46 +04:00
|
|
|
)
|
2001-12-04 18:27:04 +03:00
|
|
|
|
2001-05-11 18:27:46 +04:00
|
|
|
FIND_PATH(PYTHON_INCLUDE_PATH Python.h
|
|
|
|
/usr/include
|
2002-11-14 17:38:45 +03:00
|
|
|
/usr/include/python2.2
|
2001-07-16 05:10:10 +04:00
|
|
|
/usr/include/python2.1
|
|
|
|
/usr/include/python2.0
|
2002-11-14 17:38:45 +03:00
|
|
|
/usr/include/python1.5
|
2001-05-11 18:27:46 +04:00
|
|
|
/usr/local/include
|
2002-11-14 17:38:45 +03:00
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.2\\InstallPath]/include
|
2001-07-17 17:54:05 +04:00
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.1\\InstallPath]/include
|
|
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.0\\InstallPath]/include
|
2001-05-11 18:27:46 +04:00
|
|
|
)
|
|
|
|
|
2001-12-04 18:27:04 +03:00
|
|
|
IF (WIN32)
|
|
|
|
MARK_AS_ADVANCED(
|
|
|
|
PYTHON_DEBUG_LIBRARY
|
|
|
|
PYTHON_LIBRARY
|
|
|
|
PYTHON_INCLUDE_PATH
|
|
|
|
)
|
|
|
|
ENDIF(WIN32)
|