diff options
author | Michael Lauer <mickey@vanille-media.de> | 2007-08-15 20:06:49 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2007-08-15 20:06:49 +0000 |
commit | a71e0b7fd43bde934854cfd5ad3e8dad2df87948 (patch) | |
tree | 813b7d42efd02d2e9194c3ea19c538bd2031bf94 /packages | |
parent | 0f124ac05c760aab06d82ee3f3717431c041d86b (diff) |
python[-native] 2.5.1: add patch to compile everything in optimized bytecode.
This also reduces the packaging size / flash consumption
Diffstat (limited to 'packages')
-rw-r--r-- | packages/python/python-2.5.1/default-is-optimizied.patch | 13 | ||||
-rw-r--r-- | packages/python/python-native-2.5.1/default-is-optimizied.patch | 13 | ||||
-rw-r--r-- | packages/python/python-native_2.5.1.bb | 3 | ||||
-rw-r--r-- | packages/python/python_2.5.1.bb | 3 |
4 files changed, 30 insertions, 2 deletions
diff --git a/packages/python/python-2.5.1/default-is-optimizied.patch b/packages/python/python-2.5.1/default-is-optimizied.patch new file mode 100644 index 0000000000..6beeb6e022 --- /dev/null +++ b/packages/python/python-2.5.1/default-is-optimizied.patch @@ -0,0 +1,13 @@ +Index: Python-2.5.1/Python/compile.c +=================================================================== +--- Python-2.5.1.orig/Python/compile.c ++++ Python-2.5.1/Python/compile.c +@@ -30,7 +30,7 @@ + #include "symtable.h" + #include "opcode.h" + +-int Py_OptimizeFlag = 0; ++int Py_OptimizeFlag = 1; + + /* + ISSUES: diff --git a/packages/python/python-native-2.5.1/default-is-optimizied.patch b/packages/python/python-native-2.5.1/default-is-optimizied.patch new file mode 100644 index 0000000000..6beeb6e022 --- /dev/null +++ b/packages/python/python-native-2.5.1/default-is-optimizied.patch @@ -0,0 +1,13 @@ +Index: Python-2.5.1/Python/compile.c +=================================================================== +--- Python-2.5.1.orig/Python/compile.c ++++ Python-2.5.1/Python/compile.c +@@ -30,7 +30,7 @@ + #include "symtable.h" + #include "opcode.h" + +-int Py_OptimizeFlag = 0; ++int Py_OptimizeFlag = 1; + + /* + ISSUES: diff --git a/packages/python/python-native_2.5.1.bb b/packages/python/python-native_2.5.1.bb index e0b09cb861..fdaefe549a 100644 --- a/packages/python/python-native_2.5.1.bb +++ b/packages/python/python-native_2.5.1.bb @@ -11,7 +11,8 @@ EXCLUDE_FROM_WORLD = "1" SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \ file://bindir-libdir.patch;patch=1 \ file://cross-distutils.patch;patch=1 \ - file://dont-modify-shebang-line.patch;patch=1" + file://dont-modify-shebang-line.patch;patch=1 \ + file://default-is-optimized.patch;patch=1" S = "${WORKDIR}/Python-${PV}" inherit autotools native diff --git a/packages/python/python_2.5.1.bb b/packages/python/python_2.5.1.bb index a9d37a1ebb..6cf14735f1 100644 --- a/packages/python/python_2.5.1.bb +++ b/packages/python/python_2.5.1.bb @@ -14,7 +14,8 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \ file://crosscompile.patch;patch=1 \ file://fix-tkinter-detection.patch;patch=1 \ file://autohell.patch;patch=1 \ - file://sitebranding.patch;patch=1" + file://sitebranding.patch;patch=1 \ + file://default-is-optimized.patch;patch=1" S = "${WORKDIR}/Python-${PV}" inherit autotools |