summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-07-14 22:09:17 -0400
committerGitHub <noreply@github.com>2021-07-14 22:09:17 -0400
commit9487d9c473d1838c2f688919a7bb55eb8b79be4a (patch)
treefce0c6aceb2030532ce7adff21191a154df95e8f
parent38974172d0ff7ead2a2b212c92f303438bcdf1a2 (diff)
parentc79a038c235ea2376043ab4a70dfb18e58332c23 (diff)
downloadpython-setuptools-git-9487d9c473d1838c2f688919a7bb55eb8b79be4a.tar.gz
Merge pull request #2725 from zooba/arm64
Fixes #2724 Adds detection of Windows ARM64 build environments
-rw-r--r--changelog.d/2724.change.rst1
-rw-r--r--setuptools/_distutils/util.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/2724.change.rst b/changelog.d/2724.change.rst
new file mode 100644
index 00000000..edbd2886
--- /dev/null
+++ b/changelog.d/2724.change.rst
@@ -0,0 +1 @@
+Added detection of Windows ARM64 build environments using the ``VSCMD_ARG_TGT_ARCH`` environment variable. \ No newline at end of file
diff --git a/setuptools/_distutils/util.py b/setuptools/_distutils/util.py
index 76657d2e..4232fd21 100644
--- a/setuptools/_distutils/util.py
+++ b/setuptools/_distutils/util.py
@@ -103,6 +103,7 @@ def get_platform():
'x86' : 'win32',
'x64' : 'win-amd64',
'arm' : 'win-arm32',
+ 'arm64': 'win-arm64',
}
return TARGET_TO_PLAT.get(os.environ.get('VSCMD_ARG_TGT_ARCH')) or get_host_platform()
else: