@@ -542,13 +542,6 @@ def build(options: Options, tmp_path: Path) -> None:
542542
543543 if build_options .test_command and build_options .test_selector (config .identifier ):
544544 machine_arch = platform .machine ()
545- python_arch = call (
546- "python" ,
547- "-sSc" ,
548- "import platform; print(platform.machine())" ,
549- env = env ,
550- capture_stdout = True ,
551- ).strip ()
552545 testing_archs : list [Literal ["x86_64" , "arm64" ]]
553546
554547 if config_is_arm64 :
@@ -596,24 +589,6 @@ def build(options: Options, tmp_path: Path) -> None:
596589 # skip this test
597590 continue
598591
599- is_cp38 = config .identifier .startswith ("cp38-" )
600- if testing_arch == "arm64" and is_cp38 and python_arch != "arm64" :
601- log .warning (
602- unwrap (
603- """
604- While cibuildwheel can build CPython 3.8 universal2/arm64 wheels, we
605- cannot test the arm64 part of them, even when running on an Apple
606- Silicon machine. This is because we use the x86_64 installer of
607- CPython 3.8. See the discussion in
608- https://github.com/pypa/cibuildwheel/pull/1169 for the details. To
609- silence this warning, set `CIBW_TEST_SKIP: "cp38-macosx_*:arm64"`.
610- """
611- )
612- )
613-
614- # skip this test
615- continue
616-
617592 log .step (
618593 "Testing wheel..."
619594 if testing_arch == machine_arch
@@ -670,33 +645,16 @@ def build(options: Options, tmp_path: Path) -> None:
670645 shell_with_arch (before_test_prepared , env = virtualenv_env )
671646
672647 # install the wheel
673- if is_cp38 and python_arch == "x86_64" :
674- virtualenv_env_install_wheel = virtualenv_env .copy ()
675- virtualenv_env_install_wheel ["SYSTEM_VERSION_COMPAT" ] = "0"
676- log .notice (
677- unwrap (
678- """
679- Setting SYSTEM_VERSION_COMPAT=0 to ensure CPython 3.8 can get
680- correct macOS version and allow installation of wheels with
681- MACOSX_DEPLOYMENT_TARGET >= 11.0.
682- See https://github.com/pypa/cibuildwheel/issues/1767 for the
683- details.
684- """
685- )
686- )
687- else :
688- virtualenv_env_install_wheel = virtualenv_env
689-
690648 pip_install (
691649 f"{ repaired_wheel } { build_options .test_extras } " ,
692- env = virtualenv_env_install_wheel ,
650+ env = virtualenv_env ,
693651 )
694652
695653 # test the wheel
696654 if build_options .test_requires :
697655 pip_install (
698656 * build_options .test_requires ,
699- env = virtualenv_env_install_wheel ,
657+ env = virtualenv_env ,
700658 )
701659
702660 # run the tests from a temp dir, with an absolute path in the command
0 commit comments