(builder, pep517_requirements, legacy_requirements, session)
return build_failures
Build wheels for requirements, depending on whether wheel is installed.
Build wheels for requirements, depending on whether wheel is installed.
Build wheels for requirements depending on whether wheel is installed .
def build_wheels(builder, pep517_requirements, legacy_requirements, session):
    """
    Build wheels for requirements, depending on whether wheel is installed.
    """
    # We don't build wheels for legacy requirements if wheel is not installed.
    should_build_legacy = is_wheel_installed()

    # Always build PEP 517 requirements
    build_failures = builder.build(
        pep517_requirements,
        session=session, autobuilding=True
    )

    if should_build_legacy:
        # We don't care about failures building legacy
        # requirements, as we'll fall through to a direct
        # install for those.
        builder.build(
            legacy_requirements,
            session=session, autobuilding=True
        )

    return build_failures
def build_wheels ( builder , pep517_requirements , legacy_requirements , session ) : # We don't build wheels for legacy requirements if wheel is not installed. should_build_legacy = is_wheel_installed ( ) # Always build PEP 517 requirements build_failures = builder . build ( pep517_requirements , session = session , autobuilding = True ) if should_build_legacy : # We don't care about failures building legacy # requirements, as we'll fall through to a direct # install for those. builder . build ( legacy_requirements , session = session , autobuilding = True ) return build_failures