diff options
-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}" |