diff options
author | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2008-12-10 23:39:02 +0100 |
---|---|---|
committer | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2008-12-10 23:39:36 +0100 |
commit | c8c30f31db664b8adc95939bd5b10bf3e2b8369f (patch) | |
tree | 6e635d3c4f0048c69f8f7c90b04fa29022e5a3e8 /packages/python | |
parent | 09f942ce8ace4eb4b1bd53a1bd740a4d14d27789 (diff) |
pyrex[-native]: fix running in optimized mode
Diffstat (limited to 'packages/python')
-rw-r--r-- | packages/python/files/pyrex-fix-optimized-mode.patch | 13 | ||||
-rw-r--r-- | packages/python/python-pyrex_0.9.8.4.bb | 7 |
2 files changed, 18 insertions, 2 deletions
diff --git a/packages/python/files/pyrex-fix-optimized-mode.patch b/packages/python/files/pyrex-fix-optimized-mode.patch new file mode 100644 index 0000000000..a1f5bb29ba --- /dev/null +++ b/packages/python/files/pyrex-fix-optimized-mode.patch @@ -0,0 +1,13 @@ +Index: Pyrex-0.9.8.4/Pyrex/Distutils/extension.py +=================================================================== +--- Pyrex-0.9.8.4.orig/Pyrex/Distutils/extension.py ++++ Pyrex-0.9.8.4/Pyrex/Distutils/extension.py +@@ -15,7 +15,7 @@ except ImportError: + warnings = None + + class Extension(_Extension.Extension): +- _Extension.Extension.__doc__ + \ ++ _Extension.Extension.__doc__ or "" + \ + """pyrex_include_dirs : [string] + list of directories to search for Pyrex header files (.pxd) (in + Unix form for portability) diff --git a/packages/python/python-pyrex_0.9.8.4.bb b/packages/python/python-pyrex_0.9.8.4.bb index 80371c396a..318c6cfe42 100644 --- a/packages/python/python-pyrex_0.9.8.4.bb +++ b/packages/python/python-pyrex_0.9.8.4.bb @@ -5,9 +5,12 @@ SECTION = "devel/python" PRIORITY = "optional" LICENSE = "GPL" SRCNAME = "Pyrex" -PR = "ml1" +PR = "ml2" -SRC_URI = "http://nz.cosc.canterbury.ac.nz/~greg/python/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" +SRC_URI = "\ + http://nz.cosc.canterbury.ac.nz/~greg/python/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \ + file://pyrex-fix-optimized-mode.patch;patch=1 \ +" S = "${WORKDIR}/${SRCNAME}-${PV}" |