Viewing File: /opt/alt/python35/lib/python3.5/site-packages/pip/_internal/models/format_control.pyc
ó
tĆ_c @ so d d l m Z d d l m Z d d l m Z e rU d d l m Z m Z m Z n d e
f d YZ d S( i˙˙˙˙( t canonicalize_name( t CommandError( t MYPY_CHECK_RUNNING( t Optionalt Sett FrozenSett
FormatControlc B se e Z d Z d d g Z d
d
d Z d Z d Z d Z e d Z
d Z d Z RS( sG Helper for managing formats from which a package can be installed.
t no_binaryt only_binaryc C sF | d k r t } n | d k r0 t } n | | _ | | _ d S( N( t Nonet setR R ( t selfR R ( ( sT /opt/alt/python35/lib/python3.5/site-packages/pip/_internal/models/format_control.pyt __init__ s c sL t j s t S j j k r, t St f d j D S( Nc 3 s- | ]# } t | t | k Vq d S( N( t getattr( t .0t k( t otherR ( sT /opt/alt/python35/lib/python3.5/site-packages/pip/_internal/models/format_control.pys <genexpr># s ( t
isinstancet __class__t NotImplementedt __slots__t Falset all( R R ( ( R R sT /opt/alt/python35/lib/python3.5/site-packages/pip/_internal/models/format_control.pyt __eq__ s c C s | j | S( N( R ( R R ( ( sT /opt/alt/python35/lib/python3.5/site-packages/pip/_internal/models/format_control.pyt __ne__' s c C s d j | j j | j | j S( Ns
{}({}, {})( t formatR t __name__R R ( R ( ( sT /opt/alt/python35/lib/python3.5/site-packages/pip/_internal/models/format_control.pyt __repr__+ s c C sÜ | j d r t d n | j d } xU d | k r | j | j | j d | | j d d 4d | k r0 d Sq0 WxP | D]H } | d k rŽ | j q n t | } | j | | j | q Wd S( Nt -s7 --no-binary / --only-binary option requires 1 argument.t ,s :all:i s :none:( t
startswithR t splitt cleart addt indexR t discard( t valuet targetR t newt name( ( sT /opt/alt/python35/lib/python3.5/site-packages/pip/_internal/models/format_control.pyt handle_mutual_excludes3 s$
c C s d d h } | | j k r+ | j d n] | | j k rJ | j d n>