summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-10-27 22:49:05 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-30 11:06:28 +0000
commit782cb75ae9d82722bdc3f574e021ed3d93b5a7fb (patch)
tree21dd79fa6785e19fb93f3313d42ccc7d0562f3f3 /meta/recipes-devtools
parentf3321751d154a4e444126428f3734cbe077ccb68 (diff)
downloadpoky-782cb75ae9d82722bdc3f574e021ed3d93b5a7fb.tar.gz
python3-urllib3: remove rust dependency
python3-cryptography (and thus, rust-native) is only needed by the urllib3.contrib.pyopenssl module, which is not recommended for use up the urllib3 upstream maintainers: Module for using pyOpenSSL as a TLS backend. This module was relevant before the standard library ssl module supported SNI, but now that we've dropped support for Python 2.7 all relevant Python versions support SNI so **this module is no longer recommended**. Add a PACKAGECONFIG to control whether this module is shipped, and disable it by default. This removes rust-native from the default build of urllib3, which is in the dependencies of other common modules such as requests and sphinx. (From OE-Core rev: 055d0928ad9451d3a9c8c74c6215a59023b1116e) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/python/python3-urllib3_2.5.0.bb19
1 files changed, 12 insertions, 7 deletions
diff --git a/meta/recipes-devtools/python/python3-urllib3_2.5.0.bb b/meta/recipes-devtools/python/python3-urllib3_2.5.0.bb
index a4f3995730..62fdf8e345 100644
--- a/meta/recipes-devtools/python/python3-urllib3_2.5.0.bb
+++ b/meta/recipes-devtools/python/python3-urllib3_2.5.0.bb
@@ -7,18 +7,23 @@ SRC_URI[sha256sum] = "3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbf
7 7
8inherit pypi python_hatchling 8inherit pypi python_hatchling
9 9
10DEPENDS += " \ 10DEPENDS += "python3-hatch-vcs-native"
11 python3-hatch-vcs-native \ 11
12" 12PACKAGECONFIG ??= ""
13# This is not recommended for use upstream, and has large dependencies
14PACKAGECONFIG[openssl] = ",,,python3-cryptography python3-pyopenssl"
15
16do_install:append() {
17 if ! ${@bb.utils.contains("PACKAGECONFIG", "openssl", "true", "false", d)}; then
18 rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/urllib3/contrib/pyopenssl.py
19 fi
20}
13 21
14RDEPENDS:${PN} += "\ 22RDEPENDS:${PN} += "\
15 python3-certifi \
16 python3-cryptography \
17 python3-email \
18 python3-idna \ 23 python3-idna \
24 python3-email \
19 python3-json \ 25 python3-json \
20 python3-netclient \ 26 python3-netclient \
21 python3-pyopenssl \
22 python3-threading \ 27 python3-threading \
23 python3-logging \ 28 python3-logging \
24" 29"