ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/commands/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/commands/install.pyc

�
�2{Yc@s�ddlZddlZddlZddlZddlmZmZmZddlm	Z	ddl
mZm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] <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
Oshtt|�j||�|j}|jdddddddgdd	d
d�|jtjj��|jtjj��|jdd
ddddddd
d�|jddddddddddd
d�|jtj
j��|jdddddddddtd
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 <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�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�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-downloadtno_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-compiletstore_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_grouptindex_grouptparsertinsert_option_group(tselftargstkwR+t
index_opts((sE/opt/alt/python33/lib/python3.3/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/python33/lib/python3.3/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�tjj
|j�|_ntjj
|j�|_|jp�g}|jr�t�r�td��n|jd�nd}|jr�t|_tj�}tjj
|j�|_tjj|j�rttj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|jrtjj|j�s�tjE|j�ntFd(d)|�d*}xHtjG|�D]7}tHjItjj||�tj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	pycompiletdefault_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
RRttempfiletmkdtemptexiststisdirRR4t	index_urltextra_index_urlstno_indextnotifytjointuse_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/python33/lib/python3.3/site-packages/pip/commands/install.pytrun�s�											+				
											
%		"
	"
	
				
		(t__name__t
__module__t__doc__RStusagetsummaryR8RWR*RLR�(((sE/opt/alt/python33/lib/python3.3/site-packages/pip/commands/install.pyRs	�	(R]tsysR`R{tpip.reqRRRtpip.logRt
pip.locationsRRRRtpip.basecommandRt	pip.indexR	tpip.exceptionsR
RRtpipR
tpip.utilRR(((sE/opt/alt/python33/lib/python3.3/site-packages/pip/commands/install.pyt<module>s"

Zerion Mini Shell 1.0