ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/locations.pyo

�
�2{Yc@s3dZddlZddlZddlZddlZddlmZmZddlZddl	m
Z
mZmZddl
ZdZdZd�Zd�Zd	�Zd
�Zd�Ze�r�ejjejd�Zejjejd
�ZnIe�Zyejjej�d
�ZWnek
r=ejd�nXejjejje��Zejje�Ze
�Z ejj!d�Z"ej#dkraejjejd�Z$er�ejjed�ndZ&ejj'e$�sejjejd�Z$erejjed�ndZ&nejje"d�Z(ejje(d�Z)ejje(d�Z*n�ejjejd�Z$er�ejjed�ndZ&ejje"d�Z(ejje(d�Z)ejje(d�Z*ej#d dkrejd dkrdZ$ejje"d�Z*ne+ddd�Z,dS(s7Locations where we look for configs, install stuff, etci����N(tinstalltSCHEME_KEYS(tget_python_libtget_path_uidt	user_sites�This file is placed here by pip to indicate the source was put
here by pip.

Once this package is successfully installed this source code will be
deleted (unless you remove this file).
spip-delete-this-directory.txtcCs?tjj|t�}t|d�}|jt�|j�dS(s?
    Write the pip delete marker file into this directory.
    twN(tostpathtjointPIP_DELETE_MARKER_FILENAMEtopentwritetDELETE_MARKER_MESSAGEtclose(t	directorytfilepatht	marker_fp((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pytwrite_delete_marker_files
cCs9ttd�rtStjttdtj�kr5tStS(sM
    Return True if we're running inside a virtualenv, False otherwise.

    treal_prefixtbase_prefix(thasattrtsystTruetprefixtgetattrtFalse(((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pytrunning_under_virtualenv s
cCsYtjjtjjtj��}tjj|d�}t�rUtjj|�rUt	SdS(s?
    Return True if in a venv and no system site packages.
    sno-global-site-packages.txtN(
RRtdirnametabspathtsitet__file__RRtisfileR(tsite_mod_dirtno_global_file((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pytvirtualenv_no_global-s!cCs;tjdkrtj�Sddl}|jtj��jS(s8 Returns the effective username of the current process. twin32i����N(	RtplatformtgetpasstgetusertpwdtgetpwuidRtgeteuidtpw_name(R'((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pyt__get_username7s
cCs�tjjtj�dt��}tjdkr5|Sytj|�t	|�Wn�t
k
r�d}yt|�}Wnt
k
r�d}nX|tj
�kr�d|}|GHddGHtjj|��q�nX|S(s Returns a safe build_prefix spip_build_%sR#sSThe temporary folder for building (%s) is either not owned by you, or is a symlink.s0pip will not work until the temporary folder is sAeither deleted or is a real directory owned by your user account.N(RRRttempfilet
gettempdirR+RR$tmkdirRtOSErrortNoneRR)tpipt
exceptionstInstallationError(Rtfile_uidtmsg((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pyt_get_build_prefix>s*




tbuildtsrcs=The folder you are executing pip from can no longer be found.t~R#tScriptstbinR1spip.inispip.logs.pipspip.confitdarwinis/System/Library/s/usr/local/binsLibrary/Logs/pip.logc	
Cs,ddlm}i}|i|d6�}|j�|jddt�}|pT|j|_|pf|j|_|px|j|_|j�x%t	D]}t
|d|�||<q�Wt�r(tj
jtjddd	tjd
 |�|d<|d
k	r(tj
j|tj
j|d�d�|d<q(n|S(s+
    Return a distutils install scheme
    i����(tDistributiontnameRtcreatetinstall_tincludeRtpythonitheadersiN(tdistutils.distR=tparse_config_filestget_command_objRtuserthometroottfinalize_optionsRRRRRRRRtversionR0R(	t	dist_nameRGRHRIR=tschemetdtitkey((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pytdistutils_scheme�s,


	
	'(-t__doc__RRRR,tdistutils.command.installRRR%tpip.backwardcompatRRRtpip.exceptionsR1RR	RRR"R+R6RRRtbuild_prefixt
src_prefixtgetcwdR/texitRtrealpatht
site_packagest
expandusertuser_dirR$tbin_pyR0tbin_usertexiststdefault_storage_dirtdefault_config_filetdefault_log_fileRRQ(((s>/opt/alt/python33/lib/python3.3/site-packages/pip/locations.pyt<module>sZ		
	
	
				
	!$!&

Zerion Mini Shell 1.0