
 X#%                 @   sV  d  Z  d d l Z d d l m Z m Z m Z d d l m Z m Z d d   Z	 Gd d   d e
  Z e d	 d
 d d d d d d Z e d d d d d d d d d e Z e d d d d d d d d d d Z e d d d d d d d d Z e d d d d  d d d d d d! Z e d" d d# d$ d% d d& Z e d' d d( d d d d d e Z e d) d* d d+ d$ d% d e d d, Z e d- d d. d d d d d e Z e d/ d d0 d1 d2 d d3 d d4 Z e d5 d6 d$ d7 d d8 d1 d9 d d: d d; Z e d< d d= d1 d2 d d3 d e Z e d> d d? d1 d2 d d3 d e Z e d@ d dA d1 dB dC dD dE dF dG g d g  d dH d$ d d dI Z e dJ d dK d1 d2 d d3 d$ d% d dL Z e dM dN dO d dP d$ dQ d dR d dS Z e dT d dU d$ dQ d dH d g  d dV Z e dW d dX d d d d d dY Z e dZ d[ d d\ d dH d g  d$ d] d d^ Z e d_ d` d da d d d d d e Z e db d dc d$ dQ d dH d g  d e Z  e dd d de d dH d g  d$ df d dg Z! e dh d di d d d d d dj Z" e dk d di d dl d d d e Z# e dm dn d do d dH d g  d$ df d dp Z$ e dq d dr d dl d d d e Z% e ds d dt d d d d d du Z& e dv dw d dx d dH d g  d$ dy d dz Z' e d{ d d| d d d e Z( e d} d d| d dl d d~ d d Z) e d d d d$ d d d d d Z* e d d d d d d d d d d Z+ e d d d d d d d$ d d e d d Z, e d d d d dH d$ d d d Z- e d d d d dH d$ d d d Z. e d d d d d d d Z/ i d d 6e e e e e e e e e e e e e e e g d 6Z0 i d d 6e e e e e e  e! e" e# e$ e% e& g d 6Z1 d S)aE  
shared options and groups

The principle here is to define options once, but *not* instantiate them globally.
One reason being that options with action='append' can carry state between parses.
pip parse's general options twice internally, and shouldn't pass on state.
To be consistent, all options will follow this design.

    N)OptionGroupSUPPRESS_HELPOption)build_prefixdefault_log_filec             C   s?   t  | |  d  } x% |  d D] } | j | j    q W| S)z
    Return an OptionGroup object
    group  -- assumed to be dict with 'name' and 'options' keys
    parser -- an optparse Parser
    nameoptions)r   
add_optionmake)groupparseroption_groupoption r   9/home/ubuntu/projects/ifolica/build/pip/pip/cmdoptions.pymake_option_group   s    r   c               @   s.   e  Z d  Z d Z d d   Z d d   Z d S)OptionMakerzClass that stores the args/kwargs that would be used to make an Option,
    for making them later, and uses deepcopy's to reset state.c             O   s   | |  _  | |  _ d  S)N)argskwargs)selfr   r   r   r   r   __init__   s    	zOptionMaker.__init__c             C   s1   t  j |  j  } t  j |  j  } t | |   S)N)copydeepcopyr   r   r   )r   	args_copykwargs_copyr   r   r   r
       s    zOptionMaker.makeN)__name__
__module____qualname____doc__r   r
   r   r   r   r   r      s   r   z-hz--helpdesthelpactionz
Show help.z--require-virtualenvz--require-venvrequire_venv
store_truedefaultFz-vz	--verboseverbosecountzDGive more output. Option is additive, and can be used up to 3 times.z-Vz	--versionversionzShow version and exit.z-qz--quietquietzGive less output.z--loglogmetavarpathzAPath to a verbose appending log. This log is inactive by default.z--log-explicit-levelslog_explicit_levelsz
--log-filez--local-loglog_filezhPath to a verbose non-appending log, that only logs failures. This log is active by default at %default.z
--no-inputno_inputz--proxyproxytypestr z<Specify a proxy in the form [user:passwd@]proxy.server:port.z	--timeoutz--default-timeoutsectimeoutfloat   z2Set the socket timeout (default %default seconds).z--default-vcsdefault_vcsz--skip-requirements-regexskip_requirements_regexz--exists-actionexists_actionchoicechoicessiwbappendzPDefault action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup.z--certcertzPath to alternate CA bundle.z-iz--index-urlz
--pypi-url	index_urlURLzhttps://pypi.python.org/simple/z4Base URL of Python Package Index (default %default).z--extra-index-urlextra_index_urlsz@Extra URLs of package indexes to use in addition to --index-url.z
--no-indexno_indexzAIgnore package index (only looking at --find-links URLs instead).z-fz--find-links
find_linksurlzIf a url or path to an html file, then parse for links to archives. If a local path or file:// url that's a directory, then look for archives in the directory listing.z-Mz--use-mirrorsuse_mirrorsz	--mirrorsmirrorsz--allow-externalallow_externalPACKAGEz1Allow the installation of externally hosted filesz--allow-all-externalallow_all_externalz5Allow the installation of all externally hosted filesz--no-allow-externalstore_falsez--allow-unverifiedz--allow-insecureallow_unverifiedz9Allow the installation of insecure and unverifiable filesz--no-allow-insecureallow_all_insecurez--process-dependency-linksprocess_dependency_linksz*Enable the processing of dependency links.z-rz--requirementrequirementsfilezQInstall from the given requirements file. This option can be used multiple times.z--use-wheel	use_wheelz--no-use-wheelTzVDo not Find and prefer wheel archives when searching indexes and find-links locations.z--download-cachedownload_cachedirz#Cache downloaded packages in <dir>.z	--no-depsz--no-dependenciesignore_dependenciesz#Don't install package dependencies.z-bz--buildz--build-dirz--build-directory	build_dirzDirectory to unpack packages into and build in. The default in a virtualenv is "<venv path>/build". The default for global installs is "<OS temp dir>/pip_build_<username>".z--install-optioninstall_optionsr   a"  Extra arguments to be supplied to the setup.py install command (use like --install-option="--install-scripts=/usr/local/bin"). Use multiple --install-option options to pass multiple options to setup.py install. If you are using an option with a directory path, be sure to use absolute path.z--global-optionglobal_optionszTExtra global options to be supplied to the setup.py call before the install command.z
--no-cleanz!Don't clean up build directories.zGeneral Optionsr   zPackage Index Options)2r   r   optparser   r   r   pip.locationsr   r   r   objectr   help_require_virtualenvr%   r'   r(   r)   r,   r-   r.   r/   r4   r7   r8   r9   rA   rB   extra_index_urlrE   rF   rH   rI   rJ   rL   no_allow_externalallow_unsafeno_allow_unsaferP   rQ   rS   no_use_wheelrT   no_depsrW   rX   rY   no_cleangeneral_groupindex_groupr   r   r   r   <module>	   s  																																																