Allow more arch values in get_nuget_args
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user