Files
PowerToys/PythonHome/Lib/site-packages/pip/commands/install.pyc

77 lines
9.7 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
<00>Sc@s<>ddlZddlZddlZddlZddlmZmZmZddlm Z ddl
m Z m Z m Z mZddlmZddlmZddlmZmZmZddlmZd efd
<00><00>YZdS( i<><69><EFBFBD><EFBFBD>N(tInstallRequirementtRequirementSettparse_requirements(tlogger(t
src_prefixtvirtualenv_no_globaltdistutils_schemet build_prefix(tCommand(t PackageFinder(tInstallationErrort CommandErrortPreviousBuildDirError(t
cmdoptionstInstallCommandcBsAeZdZdZdZdZeZd<00>Zd<00>Z d<00>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<6C>
%prog [options] <requirement specifier> ...
%prog [options] -r <requirements file> ...
%prog [options] [-e] <vcs project url> ...
%prog [options] [-e] <local project path> ...
%prog [options] <archive url/path> ...sInstall packages.c OsCtt|<00>j||<00>|j}|jdddddddgdd d
d <00>|jtjj<00><00>|jtjj<00><00>|jd d ddddddd
d<00>|jddddddddddd
d<00>|jtj
j<00><00>|jdddddddddt d
d<00>|jdddddd d
d!<00>|jd"dd#dd d
d$<00>|jd%d&dd'dd d
d(<00>|jtj j<00><00>|jd)dd*dd d
d+<00>|jd,dd-dd d
d.<00>|jtj j<00><00>|jtjj<00><00>|jd/dd0dd d
d1<00>|jd2dd3dd d
d4<00>|jd5dd6ddddd
d7<00>|jd8dd dd9dtd
d:<00>|jd;dd<dd9d
d=<00>|jtjj<00><00>|jtjj<00><00>|jd>dd dtd
d?<00>|jtjj<00><00>tjtj|j<00>}|jjd@|<00>|jjd@|<00>dS(ANs-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 <dir>.s-ds
--downloads--download-dirs--download-directoryt download_dirs`Download packages into <dir> instead of installing them, regardless of what's already installed.s--srcs--sources --source-dirs--source-directorytsrc_dirs<72>Directory to check out editable projects into. The default in a virtualenv is "<venv path>/src". The default for global installs is "<current dir>/src".s-Us --upgradetupgradet
store_trues<65>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<67>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 --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((sKc:\Users\lifqian\Desktop\Python27\lib\site-packages\pip\commands\install.pyR''s<>     cCsRtd|jd|d|jd|jd|jd|jd|jd|jd |<00> 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_urlsR3tallow_externaltallow_unverifiedtallow_all_externaltallow_all_prereleasestprocess_dependency_linkstsession(R R?R3RARBRCtpreRE(R;toptionsR@RF((sKc:\Users\lifqian\Desktop\Python27\lib\site-packages\pip\commands\install.pyt_build_package_finder<65>s      cCs<>|js*|js*|jtks*|jr=tjdd<00>n|jr[t|_t|_ nt
j j |j<00>|_t
j j |j <00>|_ |jp<>g}|jr<>t<00>r<>td<00><00>n|jd<00>nd}|jrUt|_ tj<00>}t
j j |j<00>|_t
j j|j<00>rAt
j j|j<00> rAtd<00><00>n|jd|<17>n|jpag}|jg|j}|jr<>tjddj|<00><16>g}n|j r<>tjdd <00>n|j!r<>tjdd
<00>||j!7}n|j"|<00>}|j#|||<00>}t$d |jd |j d |jd|j%d|j&d|j'd|j d|j(d|j)d|jd|d|d|j*<00> } x'|D]}
| j+t,j-|
d<00><00>q<>Wx0|j.D]%}
| j+t,j/|
d|j0<00><01>q<>WxG|j1D]<} x3t2| d|d|d|<00>D]} | j+| <00>qWq<57>W| j3s<>i|j4d6} |j5rrdt6| ddj|j5<00><00>}n
d| }tj7|<00>dSzMy)|js<>| j8|d |j9d!|j9<00>n
| j:<00>|j r:|j9 r:| j;||d"|j<<00>djg| j=D]} | j4^q<04>}|r<>tjd#|<16>q<>n~|j9s<>djg| j>D]} | j4^qS<04>}|r<>tjd$|<16>q<>n0|j9r<>| j?|j@<00>tjd%|j@<16>nWntAk
r<>t|_<00>nXWd|j r|j s<>|jr| jBd!|j9<00>nX|jr<>t
j j|j<00>sBt
jC|j<00>ntDd&d'|<00>d(}xHt
jE|<00>D]7}tFjGt
j j||<00>t
j j|j|<00><00>qhWtFjH|<00>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.R,RRR.RR"Rtignore_dependenciesRR!RRFt pycompilet default_vcstfinderRHtnames^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_infotbundletrootsSuccessfully installed %ssSuccessfully downloaded %ssCreated bundle in %stthometpurelib(IRR R,RR6Rt
deprecatedRR2RtostpathtabspathRR0R!RR
RR-RttempfiletmkdtemptexiststisdirR R1t index_urltextra_index_urlstno_indextnotifytjoint use_mirrorstmirrorst_build_sessionRIRR.RR"RKRR$tadd_requirementRt from_lineRt from_editableRMR*Rthas_requirementsROR?tdicttwarnt prepare_filesRSt locate_filesRR#tsuccessfully_installedtsuccessfully_downloadedt create_bundletbundle_filenameR t cleanup_filestmakedirsRtlistdirtshutiltmovetrmtree(R;RHR<R0ttemp_target_dirR1R@RFRNtrequirement_setROtfilenametreqtoptstmsgt installedt
downloadedtlib_dirtitem((sKc:\Users\lifqian\Desktop\Python27\lib\site-packages\pip\commands\install.pytrun<75>s<>           +    
              %  "  "
        ( t__name__t
__module__t__doc__ROtusagetsummaryR5RSR'RIR<>(((sKc:\Users\lifqian\Desktop\Python27\lib\site-packages\pip\commands\install.pyRs  <09> (RYtsysR\Rwtpip.reqRRRtpip.logRt pip.locationsRRRRtpip.basecommandRt pip.indexR tpip.exceptionsR
R R tpipR R(((sKc:\Users\lifqian\Desktop\Python27\lib\site-packages\pip\commands\install.pyt<module>s    "