working python 2.5... no threading, yet.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7016 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
16
lang/python/patches/020-gentoo_py_dontcompile.patch
Normal file
16
lang/python/patches/020-gentoo_py_dontcompile.patch
Normal file
@ -0,0 +1,16 @@
|
||||
diff -ruNb Python-2.5.pris/Python/import.c Python-2.5/Python/import.c
|
||||
--- Python-2.5.pris/Python/import.c 2006-09-10 23:06:23.000000000 -0500
|
||||
+++ Python-2.5/Python/import.c 2007-04-19 17:09:30.209982000 -0500
|
||||
@@ -853,8 +853,12 @@
|
||||
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(
|
Reference in New Issue
Block a user