urllib3 v2.0 only supports OpenSSL 1.1.1+ // Issue #4614

This commit is contained in:
Ivan Kravets
2023-12-30 14:44:35 +02:00
parent 14907579cd
commit 125be4bfd4

View File

@ -30,6 +30,19 @@ from platformio import (
if platform.system() == "Darwin" and "arm" in platform.machine().lower():
__install_requires__.append("chardet>=3.0.2,<4")
# issue 4614: urllib3 v2.0 only supports OpenSSL 1.1.1+
try:
import ssl
if ssl.OPENSSL_VERSION.startswith("OpenSSL ") and ssl.OPENSSL_VERSION_INFO < (
1,
1,
1,
):
__install_requires__.append("urllib3<2")
except ImportError:
pass
setup(
name=__title__,