AlkantarClanX12

Your IP : 3.138.69.39


Current Path : /opt/alt/python34/lib/python3.4/site-packages/pip/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib/python3.4/site-packages/pip/__pycache__/locations.cpython-34.pyc

�
�Re:�
@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)&z7Locations where we look for configs, install stuff, etc�N)�install�SCHEME_KEYS)�get_python_lib�get_path_uid�	user_sitez�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).
zpip-delete-this-directory.txtcCs?tjj|t�}t|d�}|jt�|j�dS)z?
    Write the pip delete marker file into this directory.
    �wN)�os�path�join�PIP_DELETE_MARKER_FILENAME�open�write�DELETE_MARKER_MESSAGE�close)�	directory�filepath�	marker_fp�r�(/tmp/pip-ztkk0jow-build/pip/locations.py�write_delete_marker_files
rcCs9ttd�rdStjttdtj�kr5dSdS)zM
    Return True if we're running inside a virtualenv, False otherwise.

    �real_prefixT�base_prefixF)�hasattr�sys�prefix�getattrrrrr�running_under_virtualenv s
rcCsYtjjtjjtj��}tjj|d�}t�rUtjj|�rUdSdS)z?
    Return True if in a venv and no system site packages.
    zno-global-site-packages.txtTN)	rr	�dirname�abspath�site�__file__r
r�isfile)�site_mod_dir�no_global_filerrr�virtualenv_no_global-s!r$cCs;tjdkrtj�Sddl}|jtj��jS)z8 Returns the effective username of the current process. �win32rN)	r�platform�getpass�getuser�pwd�getpwuidr�geteuid�pw_name)r)rrr�__get_username7s
r-cCs�tjjtj�dt��}tjdkr5|Sytj|�t	|�Wn�t
k
r�d}yt|�}Wnt
k
r�d}YnX|tj�kr�d|}t
|�t
dd�tjj|��nYnX|S)z Returns a safe build_prefix zpip_build_%sr%NzSThe temporary folder for building (%s) is either not owned by you, or is a symlink.z0pip will not work until the temporary folder is zAeither deleted or is a real directory owned by your user account.)rr	r
�tempfile�
gettempdirr-rr&�mkdirr�OSErrorrr+�print�pip�
exceptions�InstallationError)r	�file_uid�msgrrr�_get_build_prefix>s*




r8�build�srcz=The folder you are executing pip from can no longer be found.�~r%�Scripts�binr3zpip.inizpip.logz.pipzpip.conf��darwin�z/System/Library/z/usr/local/binzLibrary/Logs/pip.logFc	Cs8ddlm}i}|i|d6�}|j�|jddd�}|pT|j|_|pf|j|_|px|j|_|j�x%tD]}t	|d|�||<q�Wt
�r4tjj
tjdd	d
tjdd�|�|d
<|dk	r4tjj
|tjj|d
�dd��|d
<q4n|S)z+
    Return a distutils install scheme
    r)�Distribution�namer�createT�install_�includer�pythonN��headers�)�distutils.distrA�parse_config_files�get_command_obj�user�home�root�finalize_optionsrrrrr	r
rr�versionr)	�	dist_namerMrNrOrA�scheme�d�i�keyrrr�distutils_scheme�s,


	
	-rW)+�__doc__rrrr.�distutils.command.installrrr'Zpip.backwardcompatrrr�pip.exceptionsr3rrrrr$r-r8r	r
r�build_prefix�
src_prefix�getcwdr1�exitr�realpath�
site_packages�
expanduser�user_dirr&�bin_py�bin_user�exists�default_storage_dir�default_config_file�default_log_filerWrrrr�<module>sZ	


		
	!$!2