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