diff options
| author | wangmy <wangmy@fujitsu.com> | 2022-05-25 14:40:35 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-27 23:50:47 +0100 |
| commit | 79ae37eedc9e3c114c5929e3edf71b08994efa35 (patch) | |
| tree | 990b2fe22e2cf412276d4b5cf71c48c99d87fbf2 /meta/recipes-devtools/python/python3-cython_0.29.30.bb | |
| parent | beb93aaaf9b0cb84a7b2c7d25ce8e36d6d783142 (diff) | |
| download | poky-79ae37eedc9e3c114c5929e3edf71b08994efa35.tar.gz | |
python3-cython: upgrade 0.29.28 -> 0.29.30
Changelog:
https://github.com/cython/cython/blob/master/CHANGES.rst
(From OE-Core rev: 04943836240dc061875829b8526610bc24969926)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-cython_0.29.30.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-cython_0.29.30.bb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-cython_0.29.30.bb b/meta/recipes-devtools/python/python3-cython_0.29.30.bb new file mode 100644 index 0000000000..26333cb271 --- /dev/null +++ b/meta/recipes-devtools/python/python3-cython_0.29.30.bb | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | inherit setuptools3 | ||
| 2 | require python-cython.inc | ||
| 3 | |||
| 4 | RDEPENDS:${PN} += "\ | ||
| 5 | python3-setuptools \ | ||
| 6 | " | ||
| 7 | |||
| 8 | # running build_ext a second time during install fails, because Python | ||
| 9 | # would then attempt to import cythonized modules built for the target | ||
| 10 | # architecture. | ||
| 11 | SETUPTOOLS_INSTALL_ARGS += "--skip-build" | ||
| 12 | |||
| 13 | do_install:append() { | ||
| 14 | # rename scripts that would conflict with the Python 2 build of Cython | ||
| 15 | mv ${D}${bindir}/cython ${D}${bindir}/cython3 | ||
| 16 | mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3 | ||
| 17 | mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3 | ||
| 18 | } | ||
| 19 | |||
| 20 | PACKAGEBUILDPKGD += "cython_fix_sources" | ||
| 21 | |||
| 22 | cython_fix_sources () { | ||
| 23 | for f in ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython-${PV}/Cython/Compiler/FlowControl.c \ | ||
| 24 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython-${PV}/Cython/Compiler/FusedNode.c \ | ||
| 25 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython-${PV}/Cython/Compiler/Scanning.c \ | ||
| 26 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython-${PV}/Cython/Compiler/Visitor.c \ | ||
| 27 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython-${PV}/Cython/Plex/Actions.c \ | ||
| 28 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython-${PV}/Cython/Plex/Scanners.c \ | ||
| 29 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython-${PV}/Cython/Runtime/refnanny.c \ | ||
| 30 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython-${PV}/Cython/Tempita/_tempita.c \ | ||
| 31 | ${PKGD}${libdir}/${PYTHON_DIR}/site-packages/Cython*/SOURCES.txt; do | ||
| 32 | if [ -e $f ]; then | ||
| 33 | sed -i -e 's#${WORKDIR}#/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}#g' $f | ||
| 34 | fi | ||
| 35 | done | ||
| 36 | } | ||
| 37 | |||
