Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-04-23 17:51:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-23 17:51:20 +0400
commit03905043c63c42e2bd79e0d58f4ae1a7fc9d47f3 (patch)
tree1515c674bc87d77305e7dd5aa2e8bc2d68cbcc43 /source/blender/python/intern
parent8f486bdadc5824456c96d352d837ad0b7275f936 (diff)
minor changes to get numpy working with locally bundled python.
- enable site-packages for bundled python distrobution, py3.2 had a problem where it would try to parse headers we didnt include, but its resolved now. - workaround for glitch I was having on arch-linux where lib64 would be be used for the bundled python directory when it was just a symlink.
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r--source/blender/python/intern/bpy_interface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c
index 552df561bbd..f71ea02a510 100644
--- a/source/blender/python/intern/bpy_interface.c
+++ b/source/blender/python/intern/bpy_interface.c
@@ -259,12 +259,15 @@ void BPY_python_start(int argc, const char **argv)
* Python doesn't expose a good way to set this. */
BLI_setenv("PYTHONIOENCODING", "utf-8:surrogateescape");
+ /* Update, Py3.3 resolves attempting to parse non-existing header */
+#if 0
/* Python 3.2 now looks for '2.xx/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. */
if (py_path_bundle) {
Py_NoSiteFlag = 1;
}
+#endif
Py_FrozenFlag = 1;