Ρς
θRc           @@  sώ   d  d k  l Z d  d k Z d  d k Z d  d k l Z d  d k l Z d  d k l	 Z	 d  d k
 l Z l Z d  d k l Z l Z l Z d  d k l Z d  d	 k l Z l Z l Z d  d
 k l Z e i i e e i  d  Z d e f d     YZ d S(   i    (   t   absolute_importN(   t   Command(   t   PackageFinder(   t   logger(   t   CommandErrort   PreviousBuildDirError(   t   InstallRequirementt   RequirementSett   parse_requirements(   t   normalize_path(   t   WheelBuildert   wheel_setuptools_supportt   setuptools_requirement(   t
   cmdoptionst
   wheelhouset   WheelCommandc           B@  s2   e  Z d  Z d Z d Z d Z d   Z d   Z RS(   s¬  
    Build Wheel archives for your requirements and dependencies.

    Wheel is a built-package format, and offers the advantage of not recompiling your software during every install.
    For more details, see the wheel docs: http://wheel.readthedocs.org/en/latest.

    Requirements: setuptools>=0.8, and wheel.

    'pip wheel' uses the bdist_wheel setuptools extension from the wheel package to build individual wheels.

    t   wheelsλ   
      %prog [options] <requirement specifier> ...
      %prog [options] -r <requirements file> ...
      %prog [options] <vcs project url> ...
      %prog [options] <local project path> ...
      %prog [options] <archive url/path> ...s$   Build wheels from your requirements.c         O@  sU  t  t |   i | |   |  i } | i d d d d d d d t d d	 | i t i  | i d
 d d d d d d d d | i t i  | i t i	  | i t i
  | i t i  | i d d d d d d d d d | i d d d d t d d | i t i  t i t i |  i  } |  i i d |  |  i i d |  d  S(   Ns   -ws   --wheel-dirt   destt	   wheel_dirt   metavart   dirt   defaultt   helpsA   Build wheels into <dir>, where the default is '<cwd>/wheelhouse'.s   --build-optiont   build_optionst   optionst   actiont   appends9   Extra arguments to be supplied to 'setup.py bdist_wheel'.s   --global-optiont   global_optionssZ   Extra global options to be supplied to the setup.py call before the 'bdist_wheel' command.s   --pret
   store_truesY   Include pre-release and development versions. By default, pip only finds stable versions.i    (   t   superR   t   __init__t   cmd_optst
   add_optiont   DEFAULT_WHEEL_DIRR   t	   use_wheelt   requirementst   download_cachet   no_depst	   build_dirt   Falset   no_cleant   make_option_groupt   index_groupt   parsert   insert_option_group(   t   selft   argst   kwR   t
   index_opts(    (    sN   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/pip/commands/wheel.pyR   (   sD    		c         C@  sΡ  y d d  k  } Wn t j
 o t d   n Xt   p t d t   n | i g | i } | i o$ t i	 d d i
 |   g  } n t d | i d | d | i d	 | i d
 | i d | i d | i d | i d | i d | i  
} t i i | i  | _ t d | i d d  d d  d | i d | i d t  } xO | D]G } | i d  o t i	 d |  qFn | i t  i! | d    qFWx | i" D]~ } xu t# | d | d | D][ }	 |	 i$ p# |	 i% d  j o. |	 i& i d  o t i	 d |	 i&  qΊn | i |	  qΊWqW| i' p, h |  i% d 6}
 d |
 } t i( |  d  Sz^ yC t) | | | i* d | i+ p g  d | i, p g  } | i-   Wn t. j
 o d  SXWd  | i/ p | i0   n Xd  S(   Ni    s?   'pip wheel' requires bdist_wheel from the 'wheel' distribution.s   'pip wheel' requires %s.s   Ignoring indexes: %st   ,t
   find_linkst
   index_urlst   use_mirrorst   mirrorsR"   t   allow_externalt   allow_insecuret   allow_all_externalt   allow_all_insecuret   allow_all_prereleasesR&   t   src_dirt   download_dirR$   t   ignore_dependenciest   ignore_installeds   .whls   ignoring %st   finderR   t   namesL   You must give at least one requirement to %(name)s (see "pip help %(name)s")R   R   (1   t   wheel.bdist_wheelt   ImportErrorR   R   R   t	   index_urlt   extra_index_urlst   no_indexR   t   notifyt   joinR   R2   R4   R5   R"   R6   R7   R8   R9   t   pret   ost   patht   abspathR&   R   t   NoneR$   R=   t   Truet   endswitht   add_requirementR   t	   from_lineR#   R   t   editableR@   t   urlt   has_requirementst   errorR
   R   R   R   t   buildR   R(   t   cleanup_files(   R-   R   R.   R   R3   R?   t   requirement_setR@   t   filenamet   reqt   optst   msgt   wb(    (    sN   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/pip/commands/wheel.pyt   runT   s|    


											 
  -
 	

(   t   __name__t
   __module__t   __doc__R@   t   usaget   summaryR   R]   (    (    (    sN   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/pip/commands/wheel.pyR      s   	,(   t
   __future__R    RI   t   syst   pip.basecommandR   t	   pip.indexR   t   pip.logR   t   pip.exceptionsR   R   t   pip.reqR   R   R   t   pip.utilR	   t	   pip.wheelR
   R   R   t   pipR   RJ   RG   t   curdirR!   R   (    (    (    sN   /var/www/html/kasc-wg8/erics/lib/python2.6/site-packages/pip/commands/wheel.pyt   <module>   s   