From 310cfda8b56a49dff7166627e78b0c98bb7ea38c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 17 Jun 2022 15:42:07 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- cibuildwheel/windows.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index 8880d43f..e7fd7452 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -35,7 +35,7 @@ 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 + platform_suffix["AMD64"] = platform_suffix["64"] # aliased name python_name = "python" + platform_suffix[arch] return [ python_name, @@ -178,7 +178,9 @@ def setup_python( # To cross-compile for ARM64, we need a native CPython to run the # build, and a copy of the ARM64 import libraries ('.\libs\*.lib') # for any extension modules. - python_libs_base = install_cpython(python_configuration.version, python_configuration.arch) + python_libs_base = install_cpython( + python_configuration.version, python_configuration.arch + ) python_libs_base = python_libs_base.parent / "libs" log.step(f"Installing native Python {native_arch} for cross-compilation...") base_python = install_cpython(python_configuration.version, native_arch)