Your IP : 18.218.1.38


Current Path : /opt/alt/python33/lib/python3.3/site-packages/pip/commands/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/commands/__pycache__/install.cpython-33.pyc

�
7�Re�5c@s�ddlZddlZddlZddlZddlmZmZmZddlm	Z	ddl
mZmZm
Z
mZddlmZddlmZddlmZmZmZddlmZdd	lmZGd
d�de�ZdS(iN(uInstallRequirementuRequirementSetuparse_requirements(ulogger(u
src_prefixuvirtualenv_no_globaludistutils_schemeubuild_prefix(uCommand(u
PackageFinder(uInstallationErroruCommandErroruPreviousBuildDirError(u
cmdoptions(uBuildDirectorycs\|EeZdZdZdZdZdZdZ�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] <requirement specifier> ...
      %prog [options] -r <requirements file> ...
      %prog [options] [-e] <vcs project url> ...
      %prog [options] [-e] <local project path> ...
      %prog [options] <archive url/path> ...uInstall packages.c
shtt|�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=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 <dir>.u-du
--downloadu--download-diru--download-directoryudownload_diru`Download packages into <dir> 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 "<venv path>/src". The default for global installs is "<current dir>/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-downloaduno_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-compileustore_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_groupuindex_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�tjj
|j�|_ntjj
|j�|_|jp�g}|jr�t�r�td��n|jd�nd}|jr�d.|_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|�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tjj|j�s�tjE|j�ntFd+d,|�d-}xHtjG|�D]7}tHjItjj||�tj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	pycompileudefault_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
<listcomp>4s	u&InstallCommand.run.<locals>.<listcomp>uSuccessfully installed %scSsg|]}|j�qS((uname(u.0ureq((u-/tmp/pip-zej_zi-build/pip/commands/install.pyu
<listcomp>9s	uSuccessfully downloaded %suCreated bundle in %suuhomeupurelibT(Ku
no_installuno_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_indexunotifyujoinuuse_mirrorsumirrorsu_build_sessionu_build_package_finderuBuildDirectoryuRequirementSetudownload_cacheuupgradeuas_egguignore_dependenciesuforce_reinstallucompileuadd_requirementuInstallRequirementu	from_lineu	editablesu
from_editableudefault_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.pyu<module>s"

?>