@@ -475,7 +475,6 @@ def build(options: Options, tmp_path: Path) -> None:
475475 build_frontend ,
476476 build_options .build_verbosity ,
477477 build_options .config_settings ,
478- py38 = config .identifier [1 :].startswith ("p38" ),
479478 )
480479
481480 build_env = env .copy ()
@@ -568,13 +567,6 @@ def build(options: Options, tmp_path: Path) -> None:
568567
569568 if build_options .test_command and build_options .test_selector (config .identifier ):
570569 machine_arch = platform .machine ()
571- python_arch = call (
572- "python" ,
573- "-sSc" ,
574- "import platform; print(platform.machine())" ,
575- env = env ,
576- capture_stdout = True ,
577- ).strip ()
578570 testing_archs : list [Literal ["x86_64" , "arm64" ]]
579571
580572 if config_is_arm64 :
@@ -622,24 +614,6 @@ def build(options: Options, tmp_path: Path) -> None:
622614 # skip this test
623615 continue
624616
625- is_cp38 = config .identifier .startswith ("cp38-" )
626- if testing_arch == "arm64" and is_cp38 and python_arch != "arm64" :
627- log .warning (
628- unwrap (
629- """
630- While cibuildwheel can build CPython 3.8 universal2/arm64 wheels, we
631- cannot test the arm64 part of them, even when running on an Apple
632- Silicon machine. This is because we use the x86_64 installer of
633- CPython 3.8. See the discussion in
634- https://github.com/pypa/cibuildwheel/pull/1169 for the details. To
635- silence this warning, set `CIBW_TEST_SKIP: "cp38-macosx_*:arm64"`.
636- """
637- )
638- )
639-
640- # skip this test
641- continue
642-
643617 log .step (
644618 "Testing wheel..."
645619 if testing_arch == machine_arch
@@ -696,33 +670,16 @@ def build(options: Options, tmp_path: Path) -> None:
696670 shell_with_arch (before_test_prepared , env = virtualenv_env )
697671
698672 # install the wheel
699- if is_cp38 and python_arch == "x86_64" :
700- virtualenv_env_install_wheel = virtualenv_env .copy ()
701- virtualenv_env_install_wheel ["SYSTEM_VERSION_COMPAT" ] = "0"
702- log .notice (
703- unwrap (
704- """
705- Setting SYSTEM_VERSION_COMPAT=0 to ensure CPython 3.8 can get
706- correct macOS version and allow installation of wheels with
707- MACOSX_DEPLOYMENT_TARGET >= 11.0.
708- See https://github.com/pypa/cibuildwheel/issues/1767 for the
709- details.
710- """
711- )
712- )
713- else :
714- virtualenv_env_install_wheel = virtualenv_env
715-
716673 pip_install (
717674 f"{ repaired_wheel } { build_options .test_extras } " ,
718- env = virtualenv_env_install_wheel ,
675+ env = virtualenv_env ,
719676 )
720677
721678 # test the wheel
722679 if build_options .test_requires :
723680 pip_install (
724681 * build_options .test_requires ,
725- env = virtualenv_env_install_wheel ,
682+ env = virtualenv_env ,
726683 )
727684
728685 # run the tests from a temp dir, with an absolute path in the command
0 commit comments