Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1090 - (hide annotations) (download)
Thu Aug 19 11:11:09 2010 UTC (13 years, 10 months ago) by niro
File size: 591 byte(s)
-re-diffed patches

1 niro 1090 diff -Naur Python-2.7/Python/import.c Python-2.7-magellan/Python/import.c
2     --- Python-2.7/Python/import.c 2010-05-20 20:37:55.000000000 +0200
3     +++ Python-2.7-magellan/Python/import.c 2010-08-19 13:00:07.000000000 +0200
4     @@ -886,7 +886,12 @@
5     mode_t mode = srcstat->st_mode & ~S_IXUSR & ~S_IXGRP & ~S_IXOTH;
6     #endif
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(