ok

Mini Shell

Direktori : /lib/python2.7/site-packages/pip/commands/
Upload File :
Current File : //lib/python2.7/site-packages/pip/commands/install.pyo

�
��abc@@s�ddlmZddlZddlZddlZddlZddlZddlZddlZddlm	Z	yddl
Z
Wnek
r�eZ
nXddl
mZddlmZddlmZmZddlmZmZmZddlmZdd	lmZmZdd
lmZddlm Z ddl!m"Z"dd
l#m$Z$m%Z%ej&e'�Z(defd��YZ)d�Z*dS(i(tabsolute_importN(tpath(tRequirementSet(tRequirementCommand(tvirtualenv_no_globaltdistutils_scheme(tInstallationErrortCommandErrortPreviousBuildDirError(t
cmdoptions(t
ensure_dirtget_installed_version(tBuildDirectory(tRemovedInPip10Warning(tcheck_path_owner(t
WheelCachetWheelBuildertInstallCommandcB@s2eZdZdZdZdZd�Zd�ZRS(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> [package-index-options] ...
      %prog [options] -r <requirements file> [package-index-options] ...
      %prog [options] [-e] <vcs project url> ...
      %prog [options] [-e] <local project path> ...
      %prog [options] <archive url/path> ...sInstall packages.c
O@sitt|�j||�|j}|jtj��|jtj��|jtj��|jtj	��|jdddddddddd	�|jd
ddd
dddddddd�|jtj��|jdddddddd�|jddddddddgdd�|jddddddd�|jdd dd!dddd"�|jtj��|jtj
��|jtj��|jtj��|jd#dd$dddd%�|jd&dd'dddd(�|jd)dd*dddddd+�|jd,dd-dd.dddd/�|jd0dd1dddddd2�|jd3dddd4dtdd5�|jd6dd7dd4dd8�|jtj��|jtj��|jtj��|jtj��|jtj��|jtj��|jtj��tjtj|j�}|jjd9|�|jjd9|�dS(:Ns-ts--targettdestt
target_dirtmetavartdirtdefaultthelps�Install packages into <dir>. By default this will not replace existing files/folders in <dir>. Use --upgrade to replace existing packages in <dir> with new versions.s-ds
--downloads--download-dirs--download-directorytdownload_dirs`Download packages into <dir> instead of installing them, regardless of what's already installed.s-Us	--upgradetupgradetactiont
store_trues�Upgrade all specified packages to the newest available version. The handling of dependencies depends on the upgrade-strategy used.s--upgrade-strategytupgrade_strategyteagertchoicessonly-if-neededs3Determines how dependency upgrading should be handled. "eager" - dependencies are upgraded regardless of whether the currently installed version satisfies the requirements of the upgraded package(s). "only-if-needed" -  are upgraded only when they do not satisfy the requirements of the upgraded package(s).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--usert
use_user_sites�Install to the Python user install directory for your platform. Typically ~/.local/, or %APPDATA%\Python on Windows. (See the Python documentation for site.USER_BASE for full details.)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--prefixtprefix_pathsIInstallation prefix where lib, bin and other top-level folders are placeds	--compiletcompilesCompile py files to pycs--no-compiletstore_falsesDo not compile py files to pyci(tsuperRt__init__tcmd_optst
add_optionR	tconstraintsteditabletrequirementst	build_dirtNonetsrctignore_requires_pythontno_depstinstall_optionstglobal_optionstTruet	use_wheeltno_use_wheelt	no_binarytonly_binarytpretno_cleantrequire_hashestmake_option_grouptindex_grouptparsertinsert_option_group(tselftargstkwR,t
index_opts((s8/usr/lib/python2.7/site-packages/pip/commands/install.pyR+8s�				c+C@s.tj|�tj|�d�}tj�dkrc|�rctjdtjt	j
d��n|jrtj
dt�n|jr�tj
dt�n|jr�tj
dt�n|jr�tj
dt�n|jr�tj
dt�t|_n|jrtjj|j�|_ntjj|j�|_|jp@g}|jr�|jrdtd	��nt�r|td
��n|jd�|jd�nd}|j r#t|_t!j"�}tjj|j �|_ tjj#|j �rtjj$|j �rtd
��n|jd|�n|j%p/g}|j&|��R}|j'||�}|j(pe|j}	t)|j*|j+�}
|j*r�t,|j*�r�tjd|j*�d|_*nt-|jd|	���}t.d|d|jd|jd|j/d|j0d|jd|jd|j1d|j2d|j3d|jd|d|d|j4d|j5d |
d!|j6�}|j7||||||j8|
�|j9s�dSz�y�|js�t:s�|j*r�|j;|�n+t<||d"gd#g�}
|
j=d$t�|js|j>||d%|j?d&|jd'|j@�tAd(|jd)|d%|j?d&|jd|j5�}tB|jCd*tDjEd+��}g}xe|D]]}|j8}y-tF|j8|�}|r�|d,|7}nWntGk
r�nX|j|�q�Wd-jH|�}|rMtjId.|�qMnAd-jHg|jJD]}|j8^q�}|rMtjId/|�nWntKk
rmt|_(�nXWd|j(s�|jL�nXWdQXWdQX|j r*tM|j �g}tNd0d)|�d1}tNd0d)|�d2}tjj#|�r�|j|�ntjj#|�r-||kr-|j|�nx�|D]�}x�tjO|�D]�}tjjH|j |�}tjj#|�r�|j/s�tjd3|�qJntjjP|�r�tjd4|�qJntjj$|�r�tQjR|�q�tjS|�ntQjTtjjH||�|�qJWq4WtQjR|�n|S(5NcS@s.ttd�p-ttd�o-tjtjkS(Ntreal_prefixtbase_prefix(thasattrtsysRIR&(((s8/usr/lib/python2.7/site-packages/pip/commands/install.pytis_venv�sispWARNING: Running pip install with root privileges is generally not a good idea. Try `%s install --user` instead.s�--egg has been deprecated and will be removed in the future. This flag is mutually exclusive with large parts of pip, and actually using it invalidates pip's ability to manage the installation process.s�--allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.s�--allow-all-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.s�--allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.s�pip install --download has been deprecated and will be removed in the future. Pip now has a download command that should be used instead.sVCan not combine '--user' and '--prefix' as they imply different installation locationssZCan not perform a '--user' install. User site-packages are not visible in this virtualenv.s--users	--prefix=s=Target path exists but is not a directory, will not continue.s--home=s�The directory '%s' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.tdeleteR1tsrc_dirRRRR#R!tignore_dependenciesR4R R"Rtsessiont	pycompiletisolatedtwheel_cacheR?t
build_optionsR7tautobuildingtrootR&R%tuserthometkeytnamet-t sSuccessfully installed %ssSuccessfully downloaded %sttpurelibtplatlibsKTarget directory %s already exists. Specify --upgrade to force replacement.s�Target directory %s already exists and is a link. Pip will not automatically replace links, please remove if replacement is desired.(UR	tresolve_wheel_no_use_binarytcheck_install_build_globaltostgetuidtloggertwarningRtbasenameRKtargvR#twarningstwarnR
tallow_externaltallow_all_externaltallow_unverifiedRR8R!R1tabspathRNR6R"R'RRRtappendR2RttempfiletmkdtemptexiststisdirR7t_build_sessiont_build_package_finderR>Rt	cache_dirtformat_controlRRRRRROR4R R(t
isolated_modeR?tpopulate_requirement_setRZthas_requirementstwheelt
prepare_filesRtbuildRR$R%tget_lib_location_guessestsortedtsuccessfully_installedtoperatort
attrgetterRt	Exceptiontjointinfotsuccessfully_downloadedRt
cleanup_filesR
Rtlistdirtislinktshutiltrmtreetremovetmove(RDtoptionsRERLR6ttemp_target_dirR7RPtfindertbuild_deleteRSR1trequirement_settwbtpossible_lib_locationstreqstitemstreqtitemtinstalled_versiont	installedt
downloadedtlib_dir_listtpurelib_dirtplatlib_dirtlib_dirttarget_item_dir((s8/usr/lib/python2.7/site-packages/pip/commands/install.pytrun�sR

		
	
	
	
					
		
													
				
				
	

			

	(t__name__t
__module__t__doc__RZtusagetsummaryR+R�(((s8/usr/lib/python2.7/site-packages/pip/commands/install.pyR!s	�cO@s$td||�}|d|dgS(NR]R^R_(R(REtkwargstscheme((s8/usr/lib/python2.7/site-packages/pip/commands/install.pyR}�s(+t
__future__RtloggingR�RbRoR�RhRKRRztImportErrorR2tpip.reqRtpip.basecommandRt
pip.locationsRRtpip.exceptionsRRRtpipR	t	pip.utilsR
Rtpip.utils.buildRtpip.utils.deprecationR
tpip.utils.filesystemRt	pip.wheelRRt	getLoggerR�RdRR}(((s8/usr/lib/python2.7/site-packages/pip/commands/install.pyt<module>s4

��

Zerion Mini Shell 1.0