ž 7’ReΤ5c@sτddlZddlZddlZddlZddlmZmZmZddlm Z ddl m Z m Z m Z mZddlmZddlmZddlmZmZmZddlmZdd lmZGd d „d eƒZdS( iN(uInstallRequirementuRequirementSetuparse_requirements(ulogger(u src_prefixuvirtualenv_no_globaludistutils_schemeu build_prefix(uCommand(u PackageFinder(uInstallationErroru CommandErroruPreviousBuildDirError(u cmdoptions(uBuildDirectorycs\|EeZdZdZdZdZdZd Z‡fdd†Z dd„Z d d „Z ‡S( uInstallCommanduI 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. uinstalluυ %prog [options] ... %prog [options] -r ... %prog [options] [-e] ... %prog [options] [-e] ... %prog [options] ...uInstall packages.c shtt|ƒ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=ddEd d>ƒ|jd?dd@dd=d dAƒ|jtjjƒƒ|jtjjƒƒ|jdBdd ddFd dCƒ|jtjjƒƒtjtj|jƒ}|jjdD|ƒ|jjdD|ƒdS(GNu-eu --editableudestu editablesuactionuappendudefaultumetavarupath/urluhelpukInstall a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url.u-tu--targetu target_dirudiruInstall packages into .u-du --downloadu--download-diru--download-directoryu download_diru`Download packages into instead of installing them, regardless of what's already installed.u--srcu--sourceu --source-diru--source-directoryusrc_diru˜Directory to check out editable projects into. The default in a virtualenv is "/src". The default for global installs is "/src".u-Uu --upgradeuupgradeu store_trueuˆUpgrade all packages to the newest available version. This process is recursive regardless of whether a dependency is already satisfied.u--force-reinstalluforce_reinstalluKWhen upgrading, reinstall all packages even if they are already up-to-date.u-Iu--ignore-installeduignore_installedu5Ignore the installed packages (reinstalling instead).u --no-installu no_installuNDEPRECATED. Download and unpack all packages, but don't actually install them.u --no-downloadu no_downloaduDEPRECATED. Don't download any packages, just install the ones already downloaded (completes an install run with --no-install).u--useru use_user_siteuInstall using the user scheme.u--egguas_egguβ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.)u--rootu root_pathu=Install everything relative to this alternate root directory.u--strip-file-prefixustrip_file_prefixuprefixu5Strip given prefix from script paths in wheel RECORD.u --compileucompileuCompile py files to pycu --no-compileu store_falseuDo not compile py files to pycu--preuYInclude pre-release and development versions. By default, pip only finds stable versions.iTF(usuperuInstallCommandu__init__ucmd_optsu add_optionu cmdoptionsu requirementsumakeu build_diruNoneudownload_cacheu src_prefixuno_depsuinstall_optionsuglobal_optionsuTrueu use_wheelu no_use_wheeluFalseuno_cleanumake_option_groupu index_groupuparseruinsert_option_group(uselfuargsukwucmd_optsu index_opts(u __class__(u-/tmp/pip-zej_zi-build/pip/commands/install.pyu__init__(sΜ     uInstallCommand.__init__cCsRtd|jd|d|jd|jd|jd|jd|jd|jd |ƒ S( u¨ Create a package finder appropriate to this install command. This method is meant to be overridden by subclasses, not called directly. u find_linksu index_urlsu use_wheeluallow_externaluallow_unverifieduallow_all_externaluallow_all_prereleasesuprocess_dependency_linksusession(u PackageFinderu find_linksu use_wheeluallow_externaluallow_unverifieduallow_all_externalupreuprocess_dependency_links(uselfuoptionsu index_urlsusession((u-/tmp/pip-zej_zi-build/pip/commands/install.pyu_build_package_finder±s      u$InstallCommand._build_package_finderc+Cs|js$|js$|js$|jr7tjddƒn|jrUd.|_d.|_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ˆd.|_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|ƒdSzEy |js| j9|d!|j:d"|j:ƒn | j;ƒ|j r•|j: r•| j<||d#|j=d$|j>ƒdjd%d&„| j?Dƒƒ}|r tjd'|ƒq nu|j:sΪdjd(d&„| j@Dƒƒ}|r tjd)|ƒq n0|j:r | jA|jBƒtjd*|jBƒnWntCk r+d.|_‚YnXWd|j rc|j sM|jrc| jDd"|j:ƒnXWdQX|jr t 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(/Nu1.7u~DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated. See https://github.com/pypa/pip/issues/906.uZCan not perform a '--user' install. User site-packages are not visible in this virtualenv.u--useru=Target path exists but is not a directory, will not continue.u--home=uIgnoring indexes: %su,uˆ--use-mirrors has been deprecated and will be removed in the future. Explicit uses of --index-url and/or --extra-index-url is suggested.u…--mirrors has been deprecated and will be removed in the future. Explicit uses of --index-url and/or --extra-index-url is suggested.udeleteu build_dirusrc_diru download_dirudownload_cacheuupgradeuas_egguignore_installeduignore_dependenciesuforce_reinstallu use_user_siteu target_dirusessionu pycompileu default_vcsufinderuoptionsunameu^You must give at least one requirement to %(name)s (maybe you meant "pip %(name)s %(links)s"?)ulinksu uLYou must give at least one requirement to %(name)s (see "pip help %(name)s")uforce_root_egg_infoubundleurootustrip_file_prefixcSsg|]}|j‘qS((uname(u.0ureq((u-/tmp/pip-zej_zi-build/pip/commands/install.pyu 4s u&InstallCommand.run..uSuccessfully installed %scSsg|]}|j‘qS((uname(u.0ureq((u-/tmp/pip-zej_zi-build/pip/commands/install.pyu 9s uSuccessfully downloaded %suCreated bundle in %suuhomeupurelibT(Ku no_installu no_downloadu build_diruno_cleanuloggeru deprecatedu download_diruTrueuignore_installeduNoneu build_prefixuosupathuabspathusrc_diruinstall_optionsu use_user_siteuvirtualenv_no_globaluInstallationErroruappendu target_dirutempfileumkdtempuexistsuisdiru CommandErroruglobal_optionsu index_urluextra_index_urlsuno_indexunotifyujoinu use_mirrorsumirrorsu_build_sessionu_build_package_finderuBuildDirectoryuRequirementSetudownload_cacheuupgradeuas_egguignore_dependenciesuforce_reinstallucompileuadd_requirementuInstallRequirementu from_lineu editablesu from_editableu default_vcsu requirementsuparse_requirementsuhas_requirementsunameu find_linksudictuwarnu prepare_filesubundleu locate_filesuinstallu root_pathustrip_file_prefixusuccessfully_installedusuccessfully_downloadedu create_bundleubundle_filenameuPreviousBuildDirErroru cleanup_filesumakedirsudistutils_schemeulistdirushutilumoveurmtree(uselfuoptionsuargsuinstall_optionsutemp_target_diruglobal_optionsu index_urlsusessionufinderu build_deleteu build_dirurequirement_setunameufilenameurequoptsumsgu installedu downloadedulib_diruitem((u-/tmp/pip-zej_zi-build/pip/commands/install.pyurunΓsΰ              +                  %  "  "         uInstallCommand.runF( u__name__u __module__u __qualname__u__doc__unameuusageusummaryuFalseubundleu__init__u_build_package_finderurun(u __locals__((u __class__u-/tmp/pip-zej_zi-build/pip/commands/install.pyuInstallCommands ‰ uInstallCommand(uosusysutempfileushutilupip.requInstallRequirementuRequirementSetuparse_requirementsupip.loguloggeru pip.locationsu src_prefixuvirtualenv_no_globaludistutils_schemeu build_prefixupip.basecommanduCommandu pip.indexu PackageFinderupip.exceptionsuInstallationErroru CommandErroruPreviousBuildDirErrorupipu cmdoptionsupip.utiluBuildDirectoryuInstallCommand(((u-/tmp/pip-zej_zi-build/pip/commands/install.pyus    "