python3-protobuf_4.25.3.bb 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. DESCRIPTION = "Protocol Buffers"
  2. HOMEPAGE = "https://developers.google.com/protocol-buffers/"
  3. SECTION = "devel/python"
  4. LICENSE = "BSD-3-Clause"
  5. LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=53dbfa56f61b90215a9f8f0d527c043d"
  6. inherit pypi setuptools3
  7. SRC_URI[sha256sum] = "25b5d0b42fd000320bd7830b349e3b696435f3b329810427a6bcce6a5492cc5c"
  8. # http://errors.yoctoproject.org/Errors/Details/184715/
  9. # Can't find required file: ../src/google/protobuf/descriptor.proto
  10. CLEANBROKEN = "1"
  11. DEPENDS += "protobuf"
  12. RDEPENDS:${PN} += " \
  13. python3-ctypes \
  14. python3-datetime \
  15. python3-json \
  16. python3-logging \
  17. python3-netclient \
  18. python3-numbers \
  19. python3-pkgutil \
  20. python3-unittest \
  21. "
  22. # For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools)
  23. BBCLASSEXTEND = "native nativesdk"
  24. DISTUTILS_BUILD_ARGS += "--cpp_implementation"
  25. DISTUTILS_INSTALL_ARGS += "--cpp_implementation"
  26. do_compile:prepend:class-native () {
  27. export KOKORO_BUILD_NUMBER="1"
  28. }
  29. do_install:append () {
  30. # Remove useless and problematic .pth file. python3-protobuf is installed in the standard
  31. # location of site packages. No need for such .pth file.
  32. # NOTE: do not drop this removal until the following issue in upstream cpython is resolved:
  33. # https://github.com/python/cpython/issues/122220
  34. rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/protobuf-*-nspkg.pth
  35. }