From 07cd207d2ddf6be23eb0deecfd890aefe8cb3f10 Mon Sep 17 00:00:00 2001 From: Niyas Sait Date: Thu, 26 Aug 2021 16:31:25 +0100 Subject: use distutils.util.get_platform to find the target platform This will be required to support cross compilation --- setuptools/command/easy_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index bd2f6235..8333e94a 100644 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -2264,7 +2264,7 @@ def get_win_launcher(type): """ launcher_fn = '%s.exe' % type if is_64bit(): - if platform.machine() == "ARM64": + if get_platform() == "win-arm64": launcher_fn = launcher_fn.replace(".", "-arm64.") else: launcher_fn = launcher_fn.replace(".", "-64.") -- cgit v1.2.1