summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-gevent_21.12.0.bb
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-10-05 11:39:48 +0200
committerKhem Raj <raj.khem@gmail.com>2022-10-05 08:24:50 -0700
commit8a4a47286ddcd4287b44d1815fcb199e483d88d2 (patch)
tree9a8f3b51aa2626446877fa1e7bcf95340d60d122 /meta-python/recipes-devtools/python/python3-gevent_21.12.0.bb
parent09b329a4853e9617005867a74e2fe80da4571002 (diff)
downloadmeta-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.bb13
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."
4HOMEPAGE = "http://www.gevent.org" 4HOMEPAGE = "http://www.gevent.org"
5LICENSE = "MIT & Python-2.0" 5LICENSE = "MIT & Python-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=4de99aac27b470c29c6c309e0c279b65" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=4de99aac27b470c29c6c309e0c279b65"
7DEPENDS += "${PYTHON_PN}-greenlet libev libuv c-ares" 7DEPENDS += "${PYTHON_PN}-greenlet libev libuv c-ares python3-cython-native"
8 8
9RDEPENDS:${PN} = "${PYTHON_PN}-greenlet \ 9RDEPENDS:${PN} = "${PYTHON_PN}-greenlet \
10 ${PYTHON_PN}-mime \ 10 ${PYTHON_PN}-mime \
@@ -20,7 +20,16 @@ export GEVENTSETUP_EMBED_CARES = "0"
20export GEVENTSETUP_EMBED_LIBEV = "0" 20export GEVENTSETUP_EMBED_LIBEV = "0"
21export GEVENTSETUP_EMBED_LIBUV = "0" 21export GEVENTSETUP_EMBED_LIBUV = "0"
22 22
23# Delete the embedded copies of libraries so we can't accidentally link to them
24do_configure:append() { 23do_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
31do_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
35SRC_URI += "file://py-3.11.patch"