diff options
| author | Niyas Sait <niyas.sait@linaro.org> | 2021-08-26 09:07:57 +0100 |
|---|---|---|
| committer | Niyas Sait <niyas.sait@linaro.org> | 2021-08-26 09:07:57 +0100 |
| commit | 57ac11b78470a41480c1b056ed11744e8de1fe09 (patch) | |
| tree | f581ca14cb4128a86d91f7d9cd28d05de8724c47 /setuptools/command | |
| parent | 0c302d232dd1a1f4ec531050532a84274edac2f4 (diff) | |
| download | python-setuptools-git-57ac11b78470a41480c1b056ed11744e8de1fe09.tar.gz | |
add win/arm64 launchers
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/easy_install.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 43bd2952..bd2f6235 100644 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -22,6 +22,7 @@ from distutils import log, dir_util from distutils.command.build_scripts import first_line_re from distutils.spawn import find_executable import sys +import platform import os import zipimport import shutil @@ -2263,7 +2264,10 @@ def get_win_launcher(type): """ launcher_fn = '%s.exe' % type if is_64bit(): - launcher_fn = launcher_fn.replace(".", "-64.") + if platform.machine() == "ARM64": + launcher_fn = launcher_fn.replace(".", "-arm64.") + else: + launcher_fn = launcher_fn.replace(".", "-64.") else: launcher_fn = launcher_fn.replace(".", "-32.") return resource_string('setuptools', launcher_fn) |
