problem with blender and python 3.2

- python 3.2 does 'import site' on startup which now tries to parse pyconfig.h which isn't copied. so for now just run without importing 'site', alternative would be to copy the header file for posix systems.
- cache PYTHON_VERSION variable so it can be set to 3.2, needed for copying python installation's other then 3.1.
This commit is contained in:
Campbell Barton
2011-02-08 06:22:06 +00:00
parent 9d6f9e74d4
commit 914e2ee01f
2 changed files with 6 additions and 1 deletions

View File

@@ -226,7 +226,7 @@ if(UNIX AND NOT APPLE)
# No way to set py31. remove for now.
# find_package(PythonLibs)
set(PYTHON /usr)
set(PYTHON_VERSION 3.1)
set(PYTHON_VERSION 3.1 CACHE STRING "")
set(PYTHON_INCLUDE_DIRS "${PYTHON}/include/python${PYTHON_VERSION}" CACHE STRING "")
mark_as_advanced(PYTHON_INCLUDE_DIRS)
# set(PYTHON_BINARY python) # not used yet