def build_wheel(wheel_directory, config_settings, metadata_directory=None):
prebuilt_whl = _find_already_built_wheel(metadata_directory)<EOL>if prebuilt_whl:<EOL><INDENT>shutil.copy2(prebuilt_whl, wheel_directory)<EOL>return os.path.basename(prebuilt_whl)<EOL><DEDENT>return _build_backend().build_wheel(wheel_directory, config_settings,<EOL>metadata_directory)<EOL>
Invoke the mandatory build_wheel hook.

    If a wheel was already built in the
    prepare_metadata_for_build_wheel fallback, this
    will copy it rather than rebuilding the wheel.