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