From 222d56bb5a2c03db8c8e2117953df1a731d4b5c8 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Fri, 17 Jun 2022 17:11:09 +0100 Subject: [PATCH] Allow more arch values in get_nuget_args --- cibuildwheel/windows.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index b0d2fccd..3e35a912 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -34,11 +34,16 @@ from .util import ( def get_nuget_args(version: str, arch: str, output_directory: Path) -> List[str]: - platform_suffix = {"32": "x86", "64": "", "ARM64": "arm64"} - platform_suffix["AMD64"] = platform_suffix["64"] # aliased name - python_name = "python" + platform_suffix[arch] + package_name = { + "32": "pythonx86", + "64": "python", + "ARM64": "pythonarm64", + # Aliases for platform.machine() return values + "x86": "pythonx86", + "AMD64": "python", + }[arch] return [ - python_name, + package_name, "-Version", version, "-FallbackSource",