ó œ0{Yc@sôddlZddlZddlZddlZddlmZmZmZddlm Z ddl m Z m Z m Z mZddlmZddlmZddlmZmZmZddlmZdd lmZd efd „ƒYZdS( iÿÿÿÿN(tInstallRequirementtRequirementSettparse_requirements(tlogger(t src_prefixtvirtualenv_no_globaltdistutils_schemet build_prefix(tCommand(t PackageFinder(tInstallationErrort CommandErrortPreviousBuildDirError(t cmdoptions(tBuildDirectorytInstallCommandcBsAeZdZdZdZdZeZd„Zd„Z d„Z RS(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] ... %prog [options] -r ... %prog [options] [-e] ... %prog [options] [-e] ... %prog [options] ...sInstall packages.c Oshtt|ƒj||Ž|j}|jdddddddgdd d d ƒ|jtjjƒƒ|jtjjƒƒ|jd d ddddddd dƒ|jddddddddddd dƒ|jtj jƒƒ|jdddddddddt d dƒ|jdddddd d d!ƒ|jd"dd#dd d d$ƒ|jd%d&dd'dd d d(ƒ|jtj jƒƒ|jd)dd*dd d d+ƒ|jd,dd-dd d d.ƒ|jtj jƒƒ|jtjjƒƒ|jd/dd0dd d d1ƒ|jd2dd3dd d d4ƒ|jd5dd6ddddd d7ƒ|jd8dd9dd:ddd d;ƒ|jd<dd dd=dtd d>ƒ|jd?dd@dd=d dAƒ|jtjjƒƒ|jtjjƒƒ|jdBdd dtd dCƒ|jtjjƒƒtjtj|jƒ}|jjdD|ƒ|jjdD|ƒdS(ENs-es --editabletdestt editablestactiontappendtdefaulttmetavarspath/urlthelpskInstall a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url.s-ts--targett target_dirtdirsInstall packages into .s-ds --downloads--download-dirs--download-directoryt download_dirs`Download packages into instead of installing them, regardless of what's already installed.s--srcs--sources --source-dirs--source-directorytsrc_dirs˜Directory to check out editable projects into. The default in a virtualenv is "/src". The default for global installs is "/src".s-Us --upgradetupgradet store_truesˆUpgrade all packages to the newest available version. This process is recursive regardless of whether a dependency is already satisfied.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 --no-installt no_installsNDEPRECATED. Download and unpack all packages, but don't actually install them.s --no-downloadt no_downloadsDEPRECATED. Don't download any packages, just install the ones already downloaded (completes an install run with --no-install).s--usert use_user_sitesInstall using the user scheme.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--strip-file-prefixtstrip_file_prefixtprefixs5Strip given prefix from script paths in wheel RECORD.s --compiletcompilesCompile py files to pycs --no-compilet store_falsesDo not compile py files to pycs--presYInclude pre-release and development versions. By default, pip only finds stable versions.i(tsuperRt__init__tcmd_optst add_optionR t requirementstmaket build_dirtNonetdownload_cacheRtno_depstinstall_optionstglobal_optionstTruet use_wheelt no_use_wheeltFalsetno_cleantmake_option_groupt index_grouptparsertinsert_option_group(tselftargstkwR+t index_opts((sE/opt/alt/python34/lib/python3.4/site-packages/pip/commands/install.pyR*(sÌ     cCsRtd|jd|d|jd|jd|jd|jd|jd|jd |ƒ S( s¨ Create a package finder appropriate to this install command. This method is meant to be overridden by subclasses, not called directly. t find_linkst index_urlsR6tallow_externaltallow_unverifiedtallow_all_externaltallow_all_prereleasestprocess_dependency_linkstsession(R RBR6RDRERFtpreRH(R>toptionsRCRI((sE/opt/alt/python34/lib/python3.4/site-packages/pip/commands/install.pyt_build_package_finder±s      c(Cs!|js$|js$|js$|jr7tjddƒn|jrUt|_t|_n|jdkr‚|jsv|jr‚t |_n|jr¦t j j |jƒ|_nt j j |jƒ|_|jpÊg}|jrþtƒrîtdƒ‚n|jdƒnd}|jrˆt|_tjƒ}t j j |jƒ|_t j j|jƒrtt j j|jƒ rttdƒ‚n|jd|ƒn|jp”g}|jg|j}|jrÖtjddj|ƒƒg}n|j ròtjdd ƒn|j!rtjdd ƒ||j!7}n|j"|ƒ}|j#|||ƒ}|jpN|j } t$|jd | ƒ} t%d | d |jd|jd|j&d|j'd|j(d|jd|j)d|j*d|jd|d|d|j+ƒ } x'|D]} | j,t-j.| dƒƒqæWx0|j/D]%} | j,t-j0| d|j1ƒƒqWxG|j2D]<} x3t3| d|d|d|ƒD]}| j,|ƒqkWqFW| j4sèi|j5d6}|j6rÍdt7|ddj|j6ƒƒ}n d |}tj8|ƒdSzVy2|js| j9|d!|j:d"|j:ƒn | j;ƒ|j rž|j: rž| j<||d#|j=d$|j>ƒdjg| j?D]}|j5^qiƒ}|rtjd%|ƒqn~|j:sìdjg| j@D]}|j5^q·ƒ}|rtjd&|ƒqn0|j:r| jA|jBƒtjd'|jBƒnWntCk r<t|_‚nXWd|j rt|j s^|jrt| jDd"|j:ƒnXWdQX|jrt j j|jƒs¬t jE|jƒntFd(d)|ƒd*}xHt jG|ƒD]7}tHjIt j j||ƒt j j|j|ƒƒqÒWtHjJ|ƒn| S(+Ns1.7s~DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated. See https://github.com/pypa/pip/issues/906.sZCan not perform a '--user' install. User site-packages are not visible in this virtualenv.s--users=Target path exists but is not a directory, will not continue.s--home=sIgnoring indexes: %st,sˆ--use-mirrors has been deprecated and will be removed in the future. Explicit uses of --index-url and/or --extra-index-url is suggested.s…--mirrors has been deprecated and will be removed in the future. Explicit uses of --index-url and/or --extra-index-url is suggested.tdeleteR/RRR1RR#Rtignore_dependenciesRR"RRIt pycompilet default_vcstfinderRKtnames^You must give at least one requirement to %(name)s (maybe you meant "pip %(name)s %(links)s"?)tlinkst sLYou must give at least one requirement to %(name)s (see "pip help %(name)s")tforce_root_egg_infotbundletrootR%sSuccessfully installed %ssSuccessfully downloaded %ssCreated bundle in %stthometpurelib(KR R!R/R9Rt deprecatedRR5RR0RtostpathtabspathRR3R"RR RRttempfiletmkdtemptexiststisdirR R4t index_urltextra_index_urlstno_indextnotifytjoint use_mirrorstmirrorst_build_sessionRLRRR1RR#RORR'tadd_requirementRt from_lineRt from_editableRQR-Rthas_requirementsRSRBtdicttwarnt prepare_filesRWt locate_filesRR$R%tsuccessfully_installedtsuccessfully_downloadedt create_bundletbundle_filenameR t cleanup_filestmakedirsRtlistdirtshutiltmovetrmtree(R>RKR?R3ttemp_target_dirR4RCRIRRt build_deleteR/trequirement_setRStfilenametreqtoptstmsgt installedt downloadedtlib_dirtitem((sE/opt/alt/python34/lib/python3.4/site-packages/pip/commands/install.pytrunÃsâ              +                  %  "  "           ( t__name__t __module__t__doc__RStusagetsummaryR8RWR*RLR‰(((sE/opt/alt/python34/lib/python3.4/site-packages/pip/commands/install.pyRs  ‰ (R]tsysR`R{tpip.reqRRRtpip.logRt pip.locationsRRRRtpip.basecommandRt pip.indexR tpip.exceptionsR R R tpipR tpip.utilRR(((sE/opt/alt/python34/lib/python3.4/site-packages/pip/commands/install.pyts    "