Magellan Linux

Annotation of /trunk/python/patches/python-2.6.0-gentoo_py_dontcompile.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 704 - (hide annotations) (download)
Wed Oct 15 17:28:32 2008 UTC (15 years, 7 months ago) by niro
File size: 562 byte(s)
-re-diffed against python-2.6.0

1 niro 704 diff -Naur Python-2.6/Python/import.c Python-2.6-magellan/Python/import.c
2     --- Python-2.6/Python/import.c 2008-09-01 16:18:30.000000000 +0200
3     +++ Python-2.6-magellan/Python/import.c 2008-10-15 19:24:21.000000000 +0200
4     @@ -881,7 +881,12 @@
5     time_t mtime = srcstat->st_mtime;
6     mode_t mode = srcstat->st_mode;
7    
8     - fp = open_exclusive(cpathname, mode);
9     + char *py_dontcompile = getenv("PYTHON_DONTCOMPILE");
10     +
11     + if (!py_dontcompile)
12     + fp = open_exclusive(cpathname, mode);
13     + else
14     + fp = NULL;
15     if (fp == NULL) {
16     if (Py_VerboseFlag)
17     PySys_WriteStderr(