aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools/python/python-grpcio_1.27.1.bb
blob: 82c3748aa19ef3f64481bcbe6dbce77598a6fc43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SUMMARY = "HTTP/2-based RPC framework"
DESCRIPTION = "Google gRPC"
HOMEPAGE = "http://www.grpc.io/"
SECTION = "devel/python"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

SRC_URI:append:class-target = " file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch \
                                file://ppc-boringssl-support.patch \
                                file://riscv64_support.patch \
"
SRC_URI[md5sum] = "ccaf4e7eb4f031d926fb80035d193b98"
SRC_URI[sha256sum] = "a899725d34769a498ecd3be154021c4368dd22bdc69473f6ec46779696f626c4"

DEPENDS:append = " ${PYTHON_PN}-protobuf"

inherit pypi setuptools

RDEPENDS:${PN} = "\
    ${PYTHON_PN}-protobuf \
    ${PYTHON_PN}-setuptools \
    ${PYTHON_PN}-six \
    python-enum34 \
    python-futures \
"

export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = "1"

CLEANBROKEN = "1"

BBCLASSEXTEND = "native nativesdk"

PNBLACKLIST[python-grpcio] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"