î
½1kd#%  ã               @   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   ú=/var/www/pythonscrapper/code/venv/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)ÚOptionMakerz†Class 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Úurlz§If 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_dirz¬Directory 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  																																																