python3-gevent_24.11.1.bb 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. SUMMARY = "A coroutine-based Python networking library"
  2. DESCRIPTION = "gevent is a coroutine-based Python networking library that uses greenlet to provide \
  3. a high-level synchronous API on top of the libevent event loop."
  4. HOMEPAGE = "https://www.gevent.org"
  5. LICENSE = "MIT & Python-2.0"
  6. LIC_FILES_CHKSUM = "file://LICENSE;md5=4de99aac27b470c29c6c309e0c279b65"
  7. DEPENDS += "python3-greenlet-native python3-greenlet libev libuv python3-cffi-native"
  8. RDEPENDS:${PN} = "python3-greenlet \
  9. python3-mime \
  10. python3-pprint \
  11. python3-zopeevent \
  12. python3-zopeinterface \
  13. "
  14. SRC_URI += "file://0001-_setuputils.py-Do-not-add-sys_inc_dir.patch"
  15. SRC_URI[sha256sum] = "8bd1419114e9e4a3ed33a5bad766afff9a3cf765cb440a582a1b3a9bc80c1aca"
  16. inherit pypi python_setuptools_build_meta cython
  17. # Don't embed libraries, link to the system provided libs instead
  18. export GEVENTSETUP_EMBED_CARES = "0"
  19. export GEVENTSETUP_EMBED_LIBEV = "0"
  20. export GEVENTSETUP_EMBED_LIBUV = "0"
  21. do_configure:append() {
  22. # Delete the embedded copies of libraries so we can't accidentally link to them
  23. rm -rf ${S}/deps
  24. # Delete the generated cython files, as they are all out of date with python 3.11
  25. rm -rf ${S}/src/gevent/*.c
  26. }
  27. # http://errors.yoctoproject.org/Errors/Details/766918/
  28. # src/gevent/queue.c:11894:83: error: passing argument 1 of '__pyx_vtabptr_6gevent_14_gevent_cqueue_UnboundQueue->__pyx_base.put' from incompatible pointer type [-Wincompatible-pointer-types]
  29. # src/gevent/queue.c:11894:114: error: passing argument 4 of '__pyx_vtabptr_6gevent_14_gevent_cqueue_UnboundQueue->__pyx_base.put' from incompatible pointer type [-Wincompatible-pointer-types]
  30. CFLAGS += "-Wno-error=incompatible-pointer-types"