summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2003-10-08 15:06:29 +0000
committerAlastair Tse <liquidx@gentoo.org>2003-10-08 15:06:29 +0000
commit696ed77e10d47882b5c86d709753dc078a647b4e (patch)
treec71542d9d72b610e8d529c964a1b0be37773d9f8 /dev-lang/python/files
parentadd pyc/pyo disabling patch (diff)
downloadhistorical-696ed77e10d47882b5c86d709753dc078a647b4e.tar.gz
historical-696ed77e10d47882b5c86d709753dc078a647b4e.tar.bz2
historical-696ed77e10d47882b5c86d709753dc078a647b4e.zip
add pyc/pyo disabling patch
Diffstat (limited to 'dev-lang/python/files')
-rw-r--r--dev-lang/python/files/digest-python-2.3.2-r11
-rw-r--r--dev-lang/python/files/python-2.3-gentoo_py_dontcompile.patch17
2 files changed, 18 insertions, 0 deletions
diff --git a/dev-lang/python/files/digest-python-2.3.2-r1 b/dev-lang/python/files/digest-python-2.3.2-r1
new file mode 100644
index 000000000000..416c04df6929
--- /dev/null
+++ b/dev-lang/python/files/digest-python-2.3.2-r1
@@ -0,0 +1 @@
+MD5 f54d7a529d444994b4b33429bbb45479 Python-2.3.2.tgz 8459427
diff --git a/dev-lang/python/files/python-2.3-gentoo_py_dontcompile.patch b/dev-lang/python/files/python-2.3-gentoo_py_dontcompile.patch
new file mode 100644
index 000000000000..22ecd0ef72e6
--- /dev/null
+++ b/dev-lang/python/files/python-2.3-gentoo_py_dontcompile.patch
@@ -0,0 +1,17 @@
+--- Python-2.3.2/Python/import.c 2003-10-08 12:29:03.166032656 +0100
++++ import.c 2003-10-08 12:32:57.423420120 +0100
+@@ -808,8 +808,12 @@
+ write_compiled_module(PyCodeObject *co, char *cpathname, long mtime)
+ {
+ FILE *fp;
+-
+- fp = open_exclusive(cpathname);
++ char *py_dontcompile = getenv("PYTHON_DONTCOMPILE");
++
++ if (!py_dontcompile)
++ fp = open_exclusive(cpathname);
++ else
++ fp = NULL;
+ if (fp == NULL) {
+ if (Py_VerboseFlag)
+ PySys_WriteStderr(