forked from platformio/platformio-core
Enhance PIP dependency declarations // Resolve #4819
This commit is contained in:
1 parent
f2d16e7631
commit
c74c9778a1
6 files changed
+71
-45
No files matched your search
@@ -12,7 +12,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import platform
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
from platformio import (
|
||||
@@ -23,26 +22,8 @@ from platformio import (
|
||||
__title__,
|
||||
__url__,
|
||||
__version__,
|
||||
__install_requires__,
|
||||
)
|
||||
|
||||
# issue #4702; Broken "requests/charset_normalizer" on macOS ARM
|
||||
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
|
||||
|
||||
from platformio.pipdeps import get_pip_dependencies
|
||||
|
||||
setup(
|
||||
name=__title__,
|
||||
@@ -53,7 +34,7 @@ setup(
|
||||
author_email=__email__,
|
||||
url=__url__,
|
||||
license=__license__,
|
||||
install_requires=__install_requires__,
|
||||
install_requires=get_pip_dependencies(),
|
||||
python_requires=">=3.6",
|
||||
packages=find_packages(include=["platformio", "platformio.*"]),
|
||||
package_data={
|
||||
|
||||
Reference in new issue
Block a user