0{Yr$@sJdZddlZddlmZmZmZddlmZddZGddde Z e d d d d d d d dZ e ddd dd dddd eZ e ddd dd dddd dZ e ddd dd dd dZe ddd d d dddd d!Ze d"d d#d$d%d d&Ze d'd d(d dddd eZe d)d*d d+d$d%ded d,Ze d-d d.d dddd eZe d/d d0d1d2dd3d d4Ze d5d6d$d7d d8d1d9dd:d d;Ze d<d d=d1d2dd3d eZe d>d d?d1d2dd3d eZe d@d dAd1dBdCdDdEdFdGgdgd dHd$d d dIZe dJd dKd1d2dd3d$d%d dLZe dMdNdOd dPd$dQddRd dSZe dTd dUd$dQd dHdgd dVZe dWd dXd dddd dYZe dZd[d d\d dHdgd$d]d d^Ze d_d`d dad dddd eZe dbd dcd$dQd dHdgd eZe ddd ded dHdgd$dfd dgZ e dhd did dddd djZ!e dkd did dlddd eZ"e dmdnd dod dHdgd$dfd dpZ#e dqd drd dlddd eZ$e dsd dtd dddd duZ%e dvdwd dxd dHdgd$dyd dzZ&e d{d d|d dd eZ'e d}d d|d dldd~d dZ(e dd dd$dddd dZ)e ddd dd dddd dZ*e ddddd dd$dd dZ+e dd dd dHd$dd dZ,e dd dd dHd$dd dZ-e dd dddd dZ.idd6e e e eeeeeeeeeeeegd6Z/idd6eeeeeee e!e"e#e$e%g d6Z0dS)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_HELPOption)default_log_filecCs?t||d}x%|dD]}|j|jqW|S)z Return an OptionGroup object group -- assumed to be dict with 'name' and 'options' keys parser -- an optparse Parser nameoptions)r add_optionmake)groupparser option_groupoptionr)/tmp/pip-ok8sy_ze-build/pip/cmdoptions.pymake_option_groupsrc@s.eZdZdZddZddZdS) 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.cOs||_||_dS)N)argskwargs)selfrrrrr__init__s zOptionMaker.__init__cCs1tj|j}tj|j}t||S)N)copydeepcopyrrr)r args_copy kwargs_copyrrrr szOptionMaker.makeN)__name__ __module__ __qualname____doc__rr rrrrrs  rz-hz--helpdesthelpactionz Show help.z--require-virtualenvz--require-venv require_venv store_truedefaultFz-vz --verboseverbosecountzDGive more output. Option is additive, and can be used up to 3 times.z-Vz --versionversionzShow version and exit.z-qz--quietquietzGive less output.z--loglogmetavarpathzAPath to a verbose appending log. This log is inactive by default.z--log-explicit-levelslog_explicit_levelsz --log-filez --local-loglog_filezhPath to a verbose non-appending log, that only logs failures. This log is active by default at %default.z --no-inputno_inputz--proxyproxytypestrz.z --no-depsz--no-dependenciesignore_dependenciesz#Don't install package dependencies.z-bz--buildz --build-dirz--build-directory build_dirz/Directory to unpack packages into and build in.z--install-optioninstall_optionsra"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-optionglobal_optionszTExtra global options to be supplied to the setup.py call before the install command.z --no-cleanz!Don't clean up build directories.zGeneral OptionsrzPackage Index Options)1rroptparserrr pip.locationsrrobjectrhelp_require_virtualenvr$r&r'r(r+r,r-r.r3r6r7r8r@rAextra_index_urlrDrErGrHrIrKno_allow_external allow_unsafeno_allow_unsaferOrPrR no_use_wheelrSno_depsrVrWrXno_clean general_group index_grouprrrr s