ok
Direktori : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/ |
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyc |
� x�_c @ s� d d l m Z d d l m Z d d l m Z m Z e ru d d l m Z d d l m Z d d l m Z m Z n d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����( t canonicalize_name( t MYPY_CHECK_RUNNINGi ( t Requirementt format_name( t SpecifierSet( t InstallRequirement( t Candidatet CandidateLookupt ExplicitRequirementc B sD e Z d � Z d � Z e d � � Z d � Z d � Z d � Z RS( c C s | | _ d S( N( t candidate( t selfR ( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyt __init__ s c C s d j d | j j d | j � S( Ns {class_name}({candidate!r})t class_nameR ( t formatt __class__t __name__R ( R ( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyt __repr__ s c C s | j j S( N( R t name( R ( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyR s c C s | j j � S( N( R t format_for_error( R ( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyR ! s c C s | j d f S( N( R t None( R ( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyt get_candidate_lookup% s c C s | | j k S( N( R ( R R ( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyt is_satisfied_by) s ( R t __module__R R t propertyR R R R ( ( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyR s t SpecifierRequirementc B sM e Z d � Z d � Z d � Z e d � � Z d � Z d � Z d � Z RS( c C s: | j d k s t d � � | | _ t | j � | _ d S( Ns This is a link, not a specifier( t linkR t AssertionErrort _ireqt frozensett extrast _extras( R t ireq( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyR / s c C s t | j j � S( N( t strR t req( R ( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyt __str__5 s c C s( d j d | j j d t | j j � � S( Ns {class_name}({requirement!r})R t requirement( R R R R R R! ( R ( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyR 9 s c C s% t | j j j � } t | | j � S( N( R R R! R R R ( R t canonical_name( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyR @ s c C s{ g t | � j d � D] } | j � ^ q } t | � d k rD d St | � d k r^ | d Sd j | d � d | d S( Nt ,i t i s , i����s and ( R t splitt stript lent join( R t st parts( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyR F s .c C s d | j f S( N( R R ( R ( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyR U s c C sU | j | j k s0 t d j | j | j � � � | j j j } | j | j d t �S( Ns? Internal issue: Candidate is not for this requirement {} vs {}t prereleases( R R R R R! t specifiert containst versiont True( R R t spec( ( sa /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/requirements.pyR Y s ( R R R R"