MINGW-packages/mingw-w64-python-setuptools/0007-windows-arm64.patch
Jeremy Drake 1043cfb8c6 python-setuptools: fix arm64
They tried to add support upstream, but distutils.util.get_platform
doesn't actually return win-arm64.
2021-10-24 12:11:58 -07:00

12 lines
504 B
Diff

--- setuptools-58.2.0/setuptools/command/easy_install.py.orig 2021-10-24 11:48:34.771385900 -0700
+++ setuptools-58.2.0/setuptools/command/easy_install.py 2021-10-24 11:49:03.364600700 -0700
@@ -2263,7 +2263,7 @@
"""
launcher_fn = '%s.exe' % type
if is_64bit():
- if get_platform() == "win-arm64":
+ if '(arm64)' in sys.version.lower():
launcher_fn = launcher_fn.replace(".", "-arm64.")
else:
launcher_fn = launcher_fn.replace(".", "-64.")