diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-08 09:22:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-08 09:22:06 +0300 |
commit | 914e2ee01f35edc60ffa20d84a198c757cfa31da (patch) | |
tree | ef1bb039275adac072f8b66d048c7ca5563e947c /source | |
parent | 9d6f9e74d4ad76269146e36697a21679c7d5aaa5 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index 776f2da8507..5c4add0e547 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -230,6 +230,11 @@ void BPY_python_start( int argc, char **argv ) BPY_python_start_path(); /* allow to use our own included python */ + /* Python 3.2 now looks for '2.56/python/include/python3.2d/pyconfig.h' to parse + * from the 'sysconfig' module which is used by 'site', so for now disable site. + * alternatively we could copy the file. */ + Py_NoSiteFlag= 1; + Py_Initialize( ); // PySys_SetArgv( argc, argv); // broken in py3, not a huge deal |