Contents of /trunk/python/patches/python-2.4-gentoo_py_dontcompile.patch
Parent Directory | Revision Log
Revision 153 -
(show annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 477 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 477 byte(s)
-import
1 | --- Python-2.4/Python/import.c 2004-09-08 10:02:03.166032656 +0100 |
2 | +++ import.c 2004-09-08 10:02:57.423420120 +0100 |
3 | @@ -808,8 +808,12 @@ |
4 | write_compiled_module(PyCodeObject *co, char *cpathname, long mtime) |
5 | { |
6 | FILE *fp; |
7 | - |
8 | - fp = open_exclusive(cpathname); |
9 | + char *py_dontcompile = getenv("PYTHON_DONTCOMPILE"); |
10 | + |
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( |
18 |