def METHOD_NAME(tmp_path):
    basic_project = test_projects.new_c_project()
    # make an sdist of the project
    sdist_dir = tmp_path / "sdist"
    sdist_dir.mkdir()
    sdist_path = make_sdist(basic_project, sdist_dir)
    # build the wheels from sdist
    actual_wheels = cibuildwheel_from_sdist_run(
        sdist_path,
        add_env={"CIBW_BUILD": "cp39-*"},
    )
    # check that the expected wheels are produced
    expected_wheels = [w for w in utils.expected_wheels("spam", "0.1.0") if "cp39" in w]
    assert set(actual_wheels) == set(expected_wheels)