Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 19613 Details for
Bug 31730
python-2.2.3-r3: bug in the "dontcompile" patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
python-2.2.3-gentoo_py_dontcompile-fixed.patch
python-2.2.3-gentoo_py_dontcompile-2.patch (text/plain), 732 bytes, created by
TGL
on 2003-10-22 01:55:25 UTC
(
hide
)
Description:
python-2.2.3-gentoo_py_dontcompile-fixed.patch
Filename:
MIME Type:
Creator:
TGL
Created:
2003-10-22 01:55:25 UTC
Size:
732 bytes
patch
obsolete
>--- Python-2.2.3/Python/import.c 2003-03-23 15:32:56.000000000 +0100 >+++ Python-2.2.3/Python/import.c 2003-10-21 20:15:42.000000000 +0200 >@@ -719,6 +719,7 @@ > write_compiled_module(PyCodeObject *co, char *cpathname, long mtime) > { > FILE *fp; >+ char *py_dontcompile; > > if (CANT_WRITE(co->co_argcount) || > CANT_WRITE(co->co_nlocals) || >@@ -731,8 +732,14 @@ > cpathname); > return; > } >- >- fp = open_exclusive(cpathname); >+ if ((py_dontcompile = getenv("PYTHON_DONTCOMPILE")) == NULL) >+ fp = open_exclusive(cpathname); >+ else { >+ if (Py_VerboseFlag) >+ PySys_WriteStderr( >+ "# PYTHON_DONTCOMPILE is set: won't create %s\n", cpathname); >+ return; >+ } > if (fp == NULL) { > if (Py_VerboseFlag) > PySys_WriteStderr(
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31730
: 19613