ok
Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/commands/ |
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/commands/search.pyc |
� �2{Yc @ s d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z d d l m Z d d l m Z m Z m Z d d l m Z d d l m Z d d l m Z d d l m Z m Z d e f d � � YZ d � Z d d d � Z d � Z d � Z d S( i����N( t Commandt SUCCESS( t get_terminal_size( t logger( t xmlrpclibt reducet cmp( t CommandError( t NO_MATCHES_FOUND( t pkg_resources( t StrictVersiont LooseVersiont SearchCommandc B s; e Z d Z d Z d Z d Z d � Z d � Z d � Z RS( s@ Search for PyPI packages whose name or summary contains <query>.t searchs %prog [options] <query>s Search PyPI for packages.c O s[ t t | � j | | � | j j d d d d d d d d d �| j j d | j � d S( Ns --indext destt indext metavart URLt defaults https://pypi.python.org/pypit helps3 Base URL of Python Package Index (default %default)i ( t superR t __init__t cmd_optst add_optiont parsert insert_option_group( t selft argst kw( ( sD /opt/alt/python33/lib/python3.3/site-packages/pip/commands/search.pyR s c C s� | s t d � � n | } | j } | j | | � } t | � } d } t j j � rg t � d } n t | d | �| r� t St S( Ns) Missing required argument (search query).i t terminal_width( R R R t transform_hitst Nonet syst stdoutt isattyR t print_resultsR R ( R t optionsR t queryt index_urlt pypi_hitst hitsR ( ( sD /opt/alt/python33/lib/python3.3/site-packages/pip/commands/search.pyt run"