2007-07-30 19:05:55 +00:00
|
|
|
Index: Python-2.5.1/Python/import.c
|
|
|
|
===================================================================
|
|
|
|
--- Python-2.5.1.orig/Python/import.c 2007-07-30 12:55:23.000000000 -0500
|
|
|
|
+++ Python-2.5.1/Python/import.c 2007-07-30 12:55:24.000000000 -0500
|
|
|
|
@@ -864,8 +864,12 @@
|
2007-04-20 18:18:10 +00:00
|
|
|
write_compiled_module(PyCodeObject *co, char *cpathname, time_t mtime)
|
|
|
|
{
|
|
|
|
FILE *fp;
|
|
|
|
+ char *py_dontcompile = getenv("PYTHON_DONTCOMPILE");
|
|
|
|
|
|
|
|
+ if (!py_dontcompile)
|
|
|
|
fp = open_exclusive(cpathname);
|
|
|
|
+ else
|
|
|
|
+ fp = NULL;
|
|
|
|
if (fp == NULL) {
|
|
|
|
if (Py_VerboseFlag)
|
|
|
|
PySys_WriteStderr(
|