From 6b1081ef618a1e3279cc82f725ccf955b0001fd3 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 13 Sep 2021 14:38:02 -0400 Subject: [PATCH] replace "in" operator with "==" + "or" for greenlet platforms Further adjusted the "greenlet" package specifier in setup.cfg to use a long chain of "or" expressions, so that the comparison of ``platform_machine`` to a specific identifier matches only the complete string. Fixes: #7024 Change-Id: I1cd40f5e14c62c21bd2e530ca8e38a5a3d50d353 --- doc/build/changelog/unreleased_14/7024.rst | 8 ++++++++ setup.cfg | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 doc/build/changelog/unreleased_14/7024.rst diff --git a/doc/build/changelog/unreleased_14/7024.rst b/doc/build/changelog/unreleased_14/7024.rst new file mode 100644 index 0000000000..f0c44a0421 --- /dev/null +++ b/doc/build/changelog/unreleased_14/7024.rst @@ -0,0 +1,8 @@ +.. change:: + :tags: bug, installation + :tickets: 7024 + + Further adjusted the "greenlet" package specifier in setup.cfg to use a + long chain of "or" expressions, so that the comparison of + ``platform_machine`` to a specific identifier matches only the complete + string. diff --git a/setup.cfg b/setup.cfg index 5e797f7830..689539687b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -40,7 +40,7 @@ package_dir = install_requires = importlib-metadata;python_version<"3.8" - greenlet != 0.4.17;python_version>="3" and platform_machine in 'x86_64 X86_64 aarch64 AARCH64 ppc64le PPC64LE amd64 AMD64 win32 WIN32' + greenlet != 0.4.17;python_version>='3' and (platform_machine=='arch64' or (platform_machine=='ppc64le' or (platform_machine=='x86_64' or (platform_machine=='amd64' or (platform_machine=='win32' or platform_machine=='WIN32'))))) [options.extras_require] asyncio = -- 2.47.2