Allow more arch values in get_nuget_args

This commit is contained in:
Steve Dower
2022-06-17 17:11:09 +01:00
parent dc14bd126e
commit 222d56bb5a
+9 -4
View File
@@ -34,11 +34,16 @@ from .util import (
def get_nuget_args(version: str, arch: str, output_directory: Path) -> List[str]: def get_nuget_args(version: str, arch: str, output_directory: Path) -> List[str]:
platform_suffix = {"32": "x86", "64": "", "ARM64": "arm64"} package_name = {
platform_suffix["AMD64"] = platform_suffix["64"] # aliased name "32": "pythonx86",
python_name = "python" + platform_suffix[arch] "64": "python",
"ARM64": "pythonarm64",
# Aliases for platform.machine() return values
"x86": "pythonx86",
"AMD64": "python",
}[arch]
return [ return [
python_name, package_name,
"-Version", "-Version",
version, version,
"-FallbackSource", "-FallbackSource",