Default gumstix configuration changed
[gumsense-br.git] / package / python / python-gentoo_py_dontcompile.patch
blob22ecd0ef72e62bf72806906fd13a66cef71b9c29
1 --- Python-2.3.2/Python/import.c 2003-10-08 12:29:03.166032656 +0100
2 +++ import.c 2003-10-08 12:32:57.423420120 +0100
3 @@ -808,8 +808,12 @@
4 write_compiled_module(PyCodeObject *co, char *cpathname, long mtime)
6 FILE *fp;
8 - fp = open_exclusive(cpathname);
9 + char *py_dontcompile = getenv("PYTHON_DONTCOMPILE");
11 + if (!py_dontcompile)
12 + fp = open_exclusive(cpathname);
13 + else
14 + fp = NULL;
15 if (fp == NULL) {
16 if (Py_VerboseFlag)
17 PySys_WriteStderr(