Logo Search packages:      
Sourcecode: distribute version File versions  Download package

def pkg_resources::_override_setuptools (   req  )  [private]

Return True when distribute wants to override a setuptools dependency.

We want to override when the requirement is setuptools and the version is
a variant of 0.6.

Definition at line 2562 of file pkg_resources.py.

02562                              :
    """Return True when distribute wants to override a setuptools dependency.

    We want to override when the requirement is setuptools and the version is
    a variant of 0.6.

    """
    if req.project_name == 'setuptools':
        if not len(req.specs):
            # Just setuptools: ok
            return True
        for comparator, version in req.specs:
            if comparator in ['==', '>=', '>']:
                if '0.7' in version:
                    # We want some setuptools not from the 0.6 series.
                    return False
        return True
    return False


def _get_mro(cls):


Generated by  Doxygen 1.6.0   Back to index