Your IP : 3.141.27.70


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

�
7�Re:c@sRdZddlZddlZddlZddlZddlmZmZddlZddl	m
Z
mZmZddl
ZdZdZdd�Zd	d
�Zdd�Zd
d�Zdd�Ze�rejjejd�Zejjejd�ZnJe�Zyejjej�d�ZWnek
rMejd�YnXejjejje��Zejje�Ze
�Z ejj!d�Z"ej#dkrqejjejd�Z$er�ejjed�ndZ&ejj'e$�s/ejjejd�Z$er&ejje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#dd�dkr9ejdd�d kr9d!Z$ejje"d"�Z*nd%ddd#d$�Z,dS(&u7Locations where we look for configs, install stuff, etciN(uinstalluSCHEME_KEYS(uget_python_libuget_path_uidu	user_siteu�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).
upip-delete-this-directory.txtcCs?tjj|t�}t|d�}|jt�|j�dS(u?
    Write the pip delete marker file into this directory.
    uwN(uosupathujoinuPIP_DELETE_MARKER_FILENAMEuopenuwriteuDELETE_MARKER_MESSAGEuclose(u	directoryufilepathu	marker_fp((u&/tmp/pip-zej_zi-build/pip/locations.pyuwrite_delete_marker_files
uwrite_delete_marker_filecCs9ttd�rdStjttdtj�kr5dSdS(uM
    Return True if we're running inside a virtualenv, False otherwise.

    ureal_prefixubase_prefixTF(uhasattrusysuTrueuprefixugetattruFalse(((u&/tmp/pip-zej_zi-build/pip/locations.pyurunning_under_virtualenv s
urunning_under_virtualenvcCsYtjjtjjtj��}tjj|d�}t�rUtjj|�rUdSdS(u?
    Return True if in a venv and no system site packages.
    uno-global-site-packages.txtNT(
uosupathudirnameuabspathusiteu__file__ujoinurunning_under_virtualenvuisfileuTrue(usite_mod_diruno_global_file((u&/tmp/pip-zej_zi-build/pip/locations.pyuvirtualenv_no_global-s!uvirtualenv_no_globalcCs;tjdkrtj�Sddl}|jtj��jS(u8 Returns the effective username of the current process. uwin32iN(	usysuplatformugetpassugetuserupwdugetpwuiduosugeteuidupw_name(upwd((u&/tmp/pip-zej_zi-build/pip/locations.pyu__get_username7s
u__get_usernamecCs�tjjtj�dt��}tjdkr5|Sytj|�t	|�Wn�t
k
r�d}yt|�}Wnt
k
r�d}YnX|tj
�kr�d|}t|�tdd�tjj|��nYnX|S(u Returns a safe build_prefix upip_build_%suwin32uSThe temporary folder for building (%s) is either not owned by you, or is a symlink.u0pip will not work until the temporary folder is uAeither deleted or is a real directory owned by your user account.N(uosupathujoinutempfileu
gettempdiru__get_usernameusysuplatformumkdiruwrite_delete_marker_fileuOSErroruNoneuget_path_uidugeteuiduprintupipu
exceptionsuInstallationError(upathufile_uidumsg((u&/tmp/pip-zej_zi-build/pip/locations.pyu_get_build_prefix>s*




u_get_build_prefixubuildusrcu=The folder you are executing pip from can no longer be found.u~uwin32uScriptsubinupipupip.iniupip.logu.pipupip.confiudarwiniu/System/Library/u/usr/local/binuLibrary/Logs/pip.logc	Cs8ddlm}i}|i|d6�}|j�|jddd�}|pT|j|_|pf|j|_|px|j|_|j�x%t	D]}t
|d|�||<q�Wt�r4tj
jtjddd	tjd
d�|�|d<|d
k	r4tj
j|tj
j|d�d
d
��|d<q4n|S(u+
    Return a distutils install scheme
    i(uDistributionunameuinstallucreateuinstall_uincludeusiteupythonNiuheadersiT(udistutils.distuDistributionuparse_config_filesuget_command_objuTrueuuseruhomeurootufinalize_optionsuSCHEME_KEYSugetattrurunning_under_virtualenvuosupathujoinusysuprefixuversionuNoneuabspath(	u	dist_nameuuseruhomeurootuDistributionuschemeuduiukey((u&/tmp/pip-zej_zi-build/pip/locations.pyudistutils_scheme�s,


	
	-udistutils_schemeF(-u__doc__usysusiteuosutempfileudistutils.command.installuinstalluSCHEME_KEYSugetpassupip.backwardcompatuget_python_libuget_path_uidu	user_siteupip.exceptionsupipuDELETE_MARKER_MESSAGEuPIP_DELETE_MARKER_FILENAMEuwrite_delete_marker_fileurunning_under_virtualenvuvirtualenv_no_globalu__get_usernameu_get_build_prefixupathujoinuprefixubuild_prefixu
src_prefixugetcwduOSErroruexituabspathurealpathu
site_packagesu
expanduseruuser_diruplatformubin_pyuNoneubin_useruexistsudefault_storage_dirudefault_config_fileudefault_log_fileuFalseudistutils_scheme(((u&/tmp/pip-zej_zi-build/pip/locations.pyu<module>sZ	


		
	!$!2

?>