diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-10-05 11:39:48 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-10-05 08:24:50 -0700 |
| commit | 8a4a47286ddcd4287b44d1815fcb199e483d88d2 (patch) | |
| tree | 9a8f3b51aa2626446877fa1e7bcf95340d60d122 /meta-python/recipes-devtools/python/python3-gevent_21.12.0.bb | |
| parent | 09b329a4853e9617005867a74e2fe80da4571002 (diff) | |
| download | meta-openembedded-8a4a47286ddcd4287b44d1815fcb199e483d88d2.tar.gz | |
python3-gevent: make compatible with python 3.11
Force regeneration of cython files in particular
(and strip build paths out of them afterwards).
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-gevent_21.12.0.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-gevent_21.12.0.bb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/meta-python/recipes-devtools/python/python3-gevent_21.12.0.bb b/meta-python/recipes-devtools/python/python3-gevent_21.12.0.bb index 5cbb3268b0..f891c2eeab 100644 --- a/meta-python/recipes-devtools/python/python3-gevent_21.12.0.bb +++ b/meta-python/recipes-devtools/python/python3-gevent_21.12.0.bb | |||
| @@ -4,7 +4,7 @@ a high-level synchronous API on top of the libevent event loop." | |||
| 4 | HOMEPAGE = "http://www.gevent.org" | 4 | HOMEPAGE = "http://www.gevent.org" |
| 5 | LICENSE = "MIT & Python-2.0" | 5 | LICENSE = "MIT & Python-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4de99aac27b470c29c6c309e0c279b65" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4de99aac27b470c29c6c309e0c279b65" |
| 7 | DEPENDS += "${PYTHON_PN}-greenlet libev libuv c-ares" | 7 | DEPENDS += "${PYTHON_PN}-greenlet libev libuv c-ares python3-cython-native" |
| 8 | 8 | ||
| 9 | RDEPENDS:${PN} = "${PYTHON_PN}-greenlet \ | 9 | RDEPENDS:${PN} = "${PYTHON_PN}-greenlet \ |
| 10 | ${PYTHON_PN}-mime \ | 10 | ${PYTHON_PN}-mime \ |
| @@ -20,7 +20,16 @@ export GEVENTSETUP_EMBED_CARES = "0" | |||
| 20 | export GEVENTSETUP_EMBED_LIBEV = "0" | 20 | export GEVENTSETUP_EMBED_LIBEV = "0" |
| 21 | export GEVENTSETUP_EMBED_LIBUV = "0" | 21 | export GEVENTSETUP_EMBED_LIBUV = "0" |
| 22 | 22 | ||
| 23 | # Delete the embedded copies of libraries so we can't accidentally link to them | ||
| 24 | do_configure:append() { | 23 | do_configure:append() { |
| 24 | # Delete the embedded copies of libraries so we can't accidentally link to them | ||
| 25 | rm -rf ${S}/deps | 25 | rm -rf ${S}/deps |
| 26 | |||
| 27 | # Delete the generated cython files, as they are all out of date with python 3.11 | ||
| 28 | rm -rf ${S}/src/gevent/*.c | ||
| 29 | } | ||
| 30 | |||
| 31 | do_compile:append() { | ||
| 32 | sed -i -e 's#${WORKDIR}##g' ${S}/src/gevent/*.c ${S}/src/gevent/libev/*.c ${S}/src/gevent/resolver/*.c | ||
| 26 | } | 33 | } |
| 34 | |||
| 35 | SRC_URI += "file://py-3.11.patch" | ||
