diff options
| author | Changqing Li <changqing.li@windriver.com> | 2025-04-28 15:11:44 +0800 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-05-14 08:33:40 -0700 |
| commit | 478f9aceecf02373c9f30f5cccd2a118a714721d (patch) | |
| tree | d9f686e55aa74c33c0f56a05f4f07c171947d887 /meta/recipes-devtools/python | |
| parent | 35a23e15968c9f7b8b8958fd813e2672773fc506 (diff) | |
| download | poky-478f9aceecf02373c9f30f5cccd2a118a714721d.tar.gz | |
buildtools-tarball: move setting of envvars to respective envfile
* make git,curl,python3-requests align with openssl, move the setting of
envvars into respective envfile
* for environment.d-openssl.sh, also check if ca-certificates.crt exist
before export envvars
(From OE-Core rev: 5c915fcada5868bdbb8aa3e28c18a26cfc41914f)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/python')
| -rw-r--r-- | meta/recipes-devtools/python/python3-requests/environment.d-python3-requests.sh | 3 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-requests_2.32.3.bb | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-requests/environment.d-python3-requests.sh b/meta/recipes-devtools/python/python3-requests/environment.d-python3-requests.sh new file mode 100644 index 0000000000..f2eee203ca --- /dev/null +++ b/meta/recipes-devtools/python/python3-requests/environment.d-python3-requests.sh | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | if [ -e "${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" ];then | ||
| 2 | export REQUESTS_CA_BUNDLE="${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" | ||
| 3 | fi | ||
diff --git a/meta/recipes-devtools/python/python3-requests_2.32.3.bb b/meta/recipes-devtools/python/python3-requests_2.32.3.bb index 4f0638b50c..bc9b2289f6 100644 --- a/meta/recipes-devtools/python/python3-requests_2.32.3.bb +++ b/meta/recipes-devtools/python/python3-requests_2.32.3.bb | |||
| @@ -3,10 +3,19 @@ HOMEPAGE = "https://requests.readthedocs.io" | |||
| 3 | LICENSE = "Apache-2.0" | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658" |
| 5 | 5 | ||
| 6 | SRC_URI:append:class-nativesdk = " \ | ||
| 7 | file://environment.d-python3-requests.sh \ | ||
| 8 | " | ||
| 9 | |||
| 6 | SRC_URI[sha256sum] = "55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760" | 10 | SRC_URI[sha256sum] = "55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760" |
| 7 | 11 | ||
| 8 | inherit pypi python_setuptools_build_meta | 12 | inherit pypi python_setuptools_build_meta |
| 9 | 13 | ||
| 14 | do_install:append:class-nativesdk() { | ||
| 15 | mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d | ||
| 16 | install -m 644 ${UNPACKDIR}/environment.d-python3-requests.sh ${D}${SDKPATHNATIVE}/environment-setup.d/python3-requests.sh | ||
| 17 | } | ||
| 18 | |||
| 10 | RDEPENDS:${PN} += " \ | 19 | RDEPENDS:${PN} += " \ |
| 11 | python3-certifi \ | 20 | python3-certifi \ |
| 12 | python3-email \ | 21 | python3-email \ |
| @@ -19,6 +28,8 @@ RDEPENDS:${PN} += " \ | |||
| 19 | python3-compression \ | 28 | python3-compression \ |
| 20 | " | 29 | " |
| 21 | 30 | ||
| 31 | FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/python3-requests.sh" | ||
| 32 | |||
| 22 | CVE_PRODUCT = "requests" | 33 | CVE_PRODUCT = "requests" |
| 23 | 34 | ||
| 24 | BBCLASSEXTEND = "native nativesdk" | 35 | BBCLASSEXTEND = "native nativesdk" |
