Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 31730
Collapse All | Expand All

(-)Python-2.2.3/Python/import.c (-2 / +9 lines)
Lines 719-724 Link Here
719
write_compiled_module(PyCodeObject *co, char *cpathname, long mtime)
719
write_compiled_module(PyCodeObject *co, char *cpathname, long mtime)
720
{
720
{
721
	FILE *fp;
721
	FILE *fp;
722
	char *py_dontcompile;
722
723
723
	if (CANT_WRITE(co->co_argcount) ||
724
	if (CANT_WRITE(co->co_argcount) ||
724
	    CANT_WRITE(co->co_nlocals) ||
725
	    CANT_WRITE(co->co_nlocals) ||
Lines 731-738 Link Here
731
				cpathname);
732
				cpathname);
732
		return;
733
		return;
733
	}
734
	}
734
735
	if ((py_dontcompile = getenv("PYTHON_DONTCOMPILE")) == NULL)
735
	fp = open_exclusive(cpathname);
736
		fp = open_exclusive(cpathname);
737
	else {
738
		if (Py_VerboseFlag)
739
			PySys_WriteStderr(
740
				"# PYTHON_DONTCOMPILE is set: won't create %s\n", cpathname);
741
		return;
742
	}
736
	if (fp == NULL) {
743
	if (fp == NULL) {
737
		if (Py_VerboseFlag)
744
		if (Py_VerboseFlag)
738
			PySys_WriteStderr(
745
			PySys_WriteStderr(

Return to bug 31730