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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user