ó `8(Zc@@srddlmZddlZddlZddlZddlZddlZddlZyddlZWne k re ZnXddl m Z ddl mZddlmZmZddlmZmZmZddlmZddlmZmZdd lmZdd lmZdd lm Z dd l!m"Z"m#Z#ej$e%ƒZ&d efd„ƒYZ'd„Z(dS(i(tabsolute_importN(tRequirementSet(tRequirementCommand(tvirtualenv_no_globaltdistutils_scheme(tInstallationErrort CommandErrortPreviousBuildDirError(t cmdoptions(t ensure_dirtget_installed_version(tBuildDirectory(tRemovedInPip10Warning(tcheck_path_owner(t WheelCachet WheelBuildertInstallCommandcB@s2eZdZdZdZdZd„Zd„ZRS(sI Install packages from: - PyPI (and other indexes) using requirement specifiers. - VCS project urls. - Local project directories. - Local or remote source archives. pip also supports installing from "requirements files", which provide an easy way to specify a whole environment to be installed. tinstalls% %prog [options] [package-index-options] ... %prog [options] -r [package-index-options] ... %prog [options] [-e] ... %prog [options] [-e] ... %prog [options] ...sInstall packages.c O@sDtt|ƒj||Ž|j}|jtjƒƒ|jtjƒƒ|jtjƒƒ|jtj ƒƒ|jdddddddddd ƒ|jd d d d ddddddddƒ|jtj ƒƒ|jddddddddƒ|jddddddddgddƒ|jdddddddƒ|jdd dd!dddd"ƒ|jtj ƒƒ|jtj ƒƒ|jtjƒƒ|jtjƒƒ|jd#dd$dddd%ƒ|jd&dd'dddd(ƒ|jd)dd*dddddd+ƒ|jd,dd-dddddd.ƒ|jd/dddd0dtdd1ƒ|jd2dd3dd0dd4ƒ|jtjƒƒ|jtjƒƒ|jtjƒƒ|jtjƒƒ|jtjƒƒ|jtjƒƒ|jtjƒƒtjtj|jƒ}|jjd5|ƒ|jjd5|ƒdS(6Ns-ts--targettdestt target_dirtmetavartdirtdefaultthelps¥Install packages into . By default this will not replace existing files/folders in . Use --upgrade to replace existing packages in with new versions.s-ds --downloads--download-dirs--download-directoryt download_dirs`Download packages into instead of installing them, regardless of what's already installed.s-Us --upgradetupgradetactiont store_trues‚Upgrade all specified packages to the newest available version. The handling of dependencies depends on the upgrade-strategy used.s--upgrade-strategytupgrade_strategyteagertchoicessonly-if-neededs3Determines how dependency upgrading should be handled. "eager" - dependencies are upgraded regardless of whether the currently installed version satisfies the requirements of the upgraded package(s). "only-if-needed" - are upgraded only when they do not satisfy the requirements of the upgraded package(s).s--force-reinstalltforce_reinstallsKWhen upgrading, reinstall all packages even if they are already up-to-date.s-Is--ignore-installedtignore_installeds5Ignore the installed packages (reinstalling instead).s--usert use_user_sites¸Install to the Python user install directory for your platform. Typically ~/.local/, or %APPDATA%\Python on Windows. (See the Python documentation for site.USER_BASE for full details.)s--eggtas_eggsâInstall packages as eggs, not 'flat', like pip normally does. This option is not about installing *from* eggs. (WARNING: Because this option overrides pip's normal install logic, requirements files may not behave as expected.)s--roott root_paths=Install everything relative to this alternate root directory.s--prefixt prefix_pathsIInstallation prefix where lib, bin and other top-level folders are placeds --compiletcompilesCompile py files to pycs --no-compilet store_falsesDo not compile py files to pyci(tsuperRt__init__tcmd_optst add_optionRt constraintsteditablet requirementst build_dirtNonetsrctignore_requires_pythontno_depstinstall_optionstglobal_optionstTruet use_wheelt no_use_wheelt no_binaryt only_binarytpretno_cleantrequire_hashestmake_option_groupt index_grouptparsertinsert_option_group(tselftargstkwR)t index_opts((s1/tmp/pip-build-0nEYGB/pip/pip/commands/install.pyR(6s²      c+C@sÜtj|ƒtj|ƒ|jr6tjdtƒn|jrRtjdtƒn|jrntjdtƒn|j rŠtjdtƒn|j r¯tjdtƒt |_ n|j rÓtjj|j ƒ|_ ntjj|jƒ|_|jp÷g}|jrP|jrtdƒ‚ntƒr3tdƒ‚n|jdƒ|jd ƒnd}|jrÚt |_ tjƒ}tjj|jƒ|_tjj|jƒrÆtjj|jƒ rÆtd ƒ‚n|jd |ƒn|jpæg}|j |ƒI}|j!||ƒ}|j"p|j }t#|j$|j%ƒ} |j$rmt&|j$ƒ rmt'j(d |j$ƒd|_$nt)|j d |ƒ¹} t*d| d|jd|j d|j+d|j,d|jd|j d|j-d|j.d|j/d|jd|d|d|j0d|j1d| d|j2ƒ} |j3| |||||j4| ƒ| j5sJdSzÓy¯|j sjt6 sj|j$ rz| j7|ƒn+t8| |dgd gƒ} | j9d!t ƒ|j sº| j:||d"|j;d#|jƒt<d$|jd%|d"|j;d#|jd|j1ƒ} t=| j>d&t?j@d'ƒƒ}g}xe|D]]}|j4}y-tA|j4| ƒ}|ri|d(|7}nWntBk r}nX|j|ƒq.Wd)jC|ƒ}|rût'jDd*|ƒqûnAd)jCg| jED]}|j4^qʃ}|rût'jDd+|ƒnWntFk rt |_"‚nXWd|j"s6| jGƒnXWdQXWdQX|jrØtH|jƒg}tId,d%|ƒd-}tId,d%|ƒd.}tjj|ƒr­|j|ƒntjj|ƒrÛ||krÛ|j|ƒnxê|D]â}xÙtjJ|ƒD]È}tjjC|j|ƒ}tjj|ƒr¡|j+sGt'j(d/|ƒqøntjjK|ƒrot'j(d0|ƒqøntjj|ƒr‘tLjM|ƒq¡tjN|ƒntLjOtjjC||ƒ|ƒqøWqâWtLjM|ƒn| S(1NsÉ--egg has been deprecated and will be removed in the future. This flag is mutually exclusive with large parts of pip, and actually using it invalidates pip's ability to manage the installation process.s--allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.s“--allow-all-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.s‘--allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.s‰pip install --download has been deprecated and will be removed in the future. Pip now has a download command that should be used instead.sVCan not combine '--user' and '--prefix' as they imply different installation locationssZCan not perform a '--user' install. User site-packages are not visible in this virtualenv.s--users --prefix=s=Target path exists but is not a directory, will not continue.s--home=sÝThe directory '%s' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.tdeleteR.tsrc_dirRRRR"R tignore_dependenciesR1RR!Rtsessiont pycompiletisolatedt wheel_cacheR<t build_optionsR4t autobuildingtroottprefixtuserthometkeytnamet-t sSuccessfully installed %ssSuccessfully downloaded %sttpurelibtplatlibsKTarget directory %s already exists. Specify --upgrade to force replacement.s„Target directory %s already exists and is a link. Pip will not automatically replace links, please remove if replacement is desired.(PRtresolve_wheel_no_use_binarytcheck_install_build_globalR"twarningstwarnR tallow_externaltallow_all_externaltallow_unverifiedRR5R R.tostpathtabspathRFR3R!R$RRRtappendR/RttempfiletmkdtemptexiststisdirR4t_build_sessiont_build_package_finderR;Rt cache_dirtformat_controlR tloggertwarningR RRRRGR1RR%t isolated_modeR<tpopulate_requirement_setRSthas_requirementstwheelt prepare_filesRtbuildRR#tget_lib_location_guessestsortedtsuccessfully_installedtoperatort attrgetterR t Exceptiontjointinfotsuccessfully_downloadedRt cleanup_filesR Rtlistdirtislinktshutiltrmtreetremovetmove(RAtoptionsRBR3ttemp_target_dirR4RHtfindert build_deleteRKR.trequirement_settwbtpossible_lib_locationstreqstitemstreqtitemtinstalled_versiont installedt downloadedt lib_dir_listt purelib_dirt platlib_dirtlib_dirttarget_item_dir((s1/tmp/pip-build-0nEYGB/pip/pip/commands/install.pytrunÀsF                                                              (t__name__t __module__t__doc__RStusagetsummaryR(R—(((s1/tmp/pip-build-0nEYGB/pip/pip/commands/install.pyRs   ŠcO@s$td||Ž}|d|dgS(NRVRWRX(R(RBtkwargstscheme((s1/tmp/pip-build-0nEYGB/pip/pip/commands/install.pyRt³s()t __future__RtloggingRwR`RdR€R[Rqt ImportErrorR/tpip.reqRtpip.basecommandRt pip.locationsRRtpip.exceptionsRRRtpipRt pip.utilsR R tpip.utils.buildR tpip.utils.deprecationR tpip.utils.filesystemR t pip.wheelRRt getLoggerR˜RlRRt(((s1/tmp/pip-build-0nEYGB/pip/pip/commands/install.pyts0        ÿ•