summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-protobuf_3.12.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-protobuf_3.12.2.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-protobuf_3.12.2.bb40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-protobuf_3.12.2.bb b/meta-python/recipes-devtools/python/python3-protobuf_3.12.2.bb
new file mode 100644
index 0000000000..03d0b0c603
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-protobuf_3.12.2.bb
@@ -0,0 +1,40 @@
1DESCRIPTION = "Protocol Buffers"
2HOMEPAGE = "https://developers.google.com/protocol-buffers/"
3SECTION = "devel/python"
4
5LICENSE = "BSD-3-Clause"
6LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=19e8f490f9526b1de84f8d949cfcfd4e"
7
8inherit pypi setuptools3
9
10SRC_URI[md5sum] = "b4336acee38ebe915b6e72fe8c5bce7b"
11SRC_URI[sha256sum] = "49ef8ab4c27812a89a76fa894fe7a08f42f2147078392c0dee51d4a444ef6df5"
12
13# http://errors.yoctoproject.org/Errors/Details/184715/
14# Can't find required file: ../src/google/protobuf/descriptor.proto
15CLEANBROKEN = "1"
16
17UPSTREAM_CHECK_REGEX = "protobuf/(?P<pver>\d+(\.\d+)+)/"
18
19DEPENDS += "protobuf"
20
21RDEPENDS_${PN} += " \
22 ${PYTHON_PN}-datetime \
23 ${PYTHON_PN}-json \
24 ${PYTHON_PN}-logging \
25 ${PYTHON_PN}-netclient \
26 ${PYTHON_PN}-numbers \
27 ${PYTHON_PN}-pkgutil \
28 ${PYTHON_PN}-six \
29 ${PYTHON_PN}-unittest \
30"
31
32# For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools)
33BBCLASSEXTEND = "native nativesdk"
34
35DISTUTILS_BUILD_ARGS += "--cpp_implementation"
36DISTUTILS_INSTALL_ARGS += "--cpp_implementation"
37
38do_compile_prepend_class-native () {
39 export KOKORO_BUILD_NUMBER="1"
40}