AlkantarClanX12

Your IP : 3.145.75.238


Current Path : /opt/alt/python34/lib64/python3.4/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/__pycache__/sysconfig.cpython-34.pyc

�
i f8`�@s�dZddlZddlZddlmZmZdddddd	d
ddd
dgZiidd6dd6dd6dd6dd6dd6dd6dd6d6id d6d!d6d!d6d!d6d"d6d"d6dd6dd6d#6id$d6d%d6d&d6d&d6d'd6d'd6d(d6dd6d)6id*d6d*d6d+d6d+d6d,d6d-d6d.d6d/6id0d6d0d6d1d6d2d6d3d6d4d6d.d6d56id6d6d6d6d7d6d7d6d8d6d4d6d.d6d96ZdqZej	j
�dZej	dd:�Zeded;Z
ejjej�Zejjej�Zejjej�Zejjej�ZdadZd<d=�Zejr�ejjeej��Zneej��Zejd)kr�d>edrd�j �kr�eejj!ee��Znejd)kr>d@edsd�j �kr>eejj!eee��Znejd)kr�dBedtd�j �kr�eejj!eee��ZndDej"kr�eej"dD�ZndEdF�Z#e$edGd�Z%e%r0ejd)kr0e%j �j&du�r0ejje%�Z%e%j&d>�r0ejje%�Z%q0ndIdJdK�Z'e'dL�Z(e(r�x-dvD]"Z)dMee)d<dNee)d<qXWndOdP�Z*dQdR�Z+dSdT�Z,dUdV�Z-dWdX�Z.ddYdZ�Z/d[d�Z0d\d]�Z1d^d_�Z2d`da�Z3ddbd�Z4dcd�Z5ddd
�Z6ded	�Z7e-�ddLdfd
�Z8e-�ddLdgd�Z9dhd�Z:did�Z;djd�Z<dkd�Z=dldm�Z>dndo�Z?e@dpkr�e?�ndS)wz-Access to Python's configuration information.�N)�pardir�realpath�get_config_h_filename�get_config_var�get_config_vars�get_makefile_filename�get_path�get_path_names�	get_paths�get_platform�get_python_version�get_scheme_names�parse_config_hz/{installed_base}/lib64/python{py_version_short}�stdlibz){platbase}/lib64/python{py_version_short}�
platstdlibz1{base}/lib/python{py_version_short}/site-packages�purelibz7{platbase}/lib64/python{py_version_short}/site-packages�platlibz;{installed_base}/include/python{py_version_short}{abiflags}�includez?{installed_platbase}/include/python{py_version_short}{abiflags}�platincludez
{base}/bin�scriptsz{base}�data�posix_prefixz{installed_base}/lib/pythonz{base}/lib/pythonz{installed_base}/include/python�
posix_homez{installed_base}/Libz
{base}/Libz{base}/Lib/site-packagesz{installed_base}/Includez{base}/Scripts�ntz#{userbase}/Python{py_version_nodot}z1{userbase}/Python{py_version_nodot}/site-packagesz+{userbase}/Python{py_version_nodot}/Includez{userbase}/Scriptsz
{userbase}�nt_userz){userbase}/lib64/python{py_version_short}z5{userbase}/lib/python{py_version_short}/site-packagesz7{userbase}/lib64/python{py_version_short}/site-packagesz+{userbase}/include/python{py_version_short}z{userbase}/bin�
posix_userz{userbase}/lib/pythonz#{userbase}/lib/python/site-packagesz{userbase}/include�osx_framework_user��cCs+yt|�SWntk
r&|SYnXdS)N)r�OSError)�path�r!�./opt/alt/python34/lib64/python3.4/sysconfig.py�_safe_realpathcs
r#�pcbuild�z\pc\v�
z\pcbuild\amd64�Z_PYTHON_PROJECT_BASEcCs=x6dD].}tjjtjj|d|��rdSqWdS)N�
Setup.dist�Setup.local�ModulesTF)r(r))�osr �isfile�join)�d�fnr!r!r"�_is_python_source_dir}s
$r0�_home�
pcbuild\amd64FcCs |rtrtt�Stt�S)N)�	_sys_homer0�
_PROJECT_BASE)�
check_homer!r!r"�is_python_build�s
r6Tz{srcdir}/Includez{projectbase}/.cCsvy|j|�SWn^tk
rqy|jtj�SWn5tk
rl}ztd|��WYdd}~XnXYnXdS)Nz{%s})�format�KeyErrorr+�environ�AttributeError)�s�
local_vars�varr!r!r"�_subst_vars�s
r>cCsI|j�}x6|j�D](\}}||kr7qn|||<qWdS)N)�keys�items)�target_dict�
other_dict�target_keys�key�valuer!r!r"�_extend_dict�s
rFcCs�i}|dkri}nt|t��xat|j�D]O\}}tjdkrltjj|�}ntjjt	||��||<q<W|S)N�posixr)zposixznt)
rFr�_INSTALL_SCHEMESr@r+�namer �
expanduser�normpathr>)�scheme�vars�resrDrEr!r!r"�_expand_vars�s	#rOcCstjdkrdStjS)NrGr)r+rIr!r!r!r"�_get_default_scheme�srPcCs�tjjdd�}dd�}tjdkrbtjjd�pEd}|rR|S||d�Sntjdkr�td	�}|r�|r�|S|dd
|dtjdd��Sq�n|r�|S|dd
�SdS)N�PYTHONUSERBASEcWstjjtjj|��S)N)r+r rJr-)�argsr!r!r"�joinuser�sz_getuserbase.<locals>.joinuserr�APPDATA�~�Python�darwin�PYTHONFRAMEWORK�Libraryz%d.%drz.local)r+r9�getrI�sys�platformr�version_info)�env_baserS�base�	frameworkr!r!r"�_getuserbase�s"racCs?ddl}|jd�}|jd�}|jd�}|dkrNi}ni}i}t|dd��}|j�}	WdQXx�|	D]�}
|
jd�s�|
j�d	kr�q�n|j|
�}|r�|jd
d�\}}
|
j�}
|
jdd	�}d
|kr|
||<qayt	|
�}
Wn(t
k
rS|
jdd
�||<YqaX|
||<q�q�Wt|j��}d}xot
|�dkr�xVt|�D]H}||}|j|�p�|j|�}|dk	r�|jd
�}d}||kr
t||�}n�||kr"d}n�|tjkrAtj|}nx||kr�|jd�r{|dd�|kr{d	}q�d||kr�d}q�t|d|�}nd	||<}|r�||j�d�}|d|j��}|j�|kr
||7}n||7}d
|kr-|||<q�yt	|�}Wn"t
k
ra|j�||<YnX|||<|j|�|jd�r�|dd�|kr�|dd�}||kr�|||<q�q�q�q�|||<|j|�q�Wq�Wx<|j�D].\}}
t|
t�r�|
j�||<q�q�W|j|�|S)z�Parse a Makefile-style file.

    A dictionary containing name/value pairs is returned.  If an
    optional dictionary is passed in as the second argument, it is
    used instead of a new dictionary.
    rNz"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)z\$\(([A-Za-z][A-Za-z0-9_]*)\)z\${([A-Za-z][A-Za-z0-9_]*)}�errors�surrogateescape�#��rz$$�$�CFLAGS�LDFLAGS�CPPFLAGSTF�PY_r)zCFLAGSzLDFLAGSzCPPFLAGS)�re�compile�open�	readlines�
startswith�strip�match�group�replace�int�
ValueError�listr?�len�tuple�search�strr+r9�end�start�remover@�
isinstance�update)�filenamerMrl�_variable_rx�_findvar1_rx�_findvar2_rx�done�notdone�f�lines�line�m�n�v�tmpv�	variables�renamed_variablesrIrE�found�item�after�kr!r!r"�_parse_makefile�s�		
!


			







r�cCsftrtjjtptd�Sttd�rDdttj	f}nd}tjjt
d�|d�S)z Return the path of the Makefile.�Makefile�abiflagszconfig-%s%s�configr)�
_PYTHON_BUILDr+r r-r3r4�hasattrr[�_PY_VERSION_SHORTr�r)�config_dir_namer!r!r"rQsc+Cs_ddl}i}t�}yt||�Wn^tk
r�}z>d|}t|d�rn|d|j}nt|��WYdd}~XnXt�}y&t|��}t||�WdQXWn^tk
r}z>d|}t|d�r�|d|j}nt|��WYdd}~XnXt	r4|d|d<nd}d	t
jkr}ddl}|j
|�}	||	_|	t
j|<nd
t�t
jdd�f}
tt
d�r�|
d
7}
ntj|
dd�tjj|
|d�}t|ddd��4}|jd�|jd�|j|d|�WdQXtdddd��}|j|
�WdQXdS)z;Generate the Python module containing build-time variables.rNz.invalid Python installation: unable to open %s�strerrorz (%s)�LDSHARED�	BLDSHARED�_sysconfigdatarWzbuild/lib.%s-%sr�gettotalrefcountz-pydebug�exist_okTz.py�w�encoding�utf8zB# system configuration generated and used by the sysconfig module
zbuild_time_vars = �streamzpybuilddir.txt�ascii)�pprintrr�rr�r�rrnrr�r[r\�types�
ModuleType�build_time_vars�modulesr�versionr+�makedirsr r-�write)r�rM�makefile�e�msg�config_hr�rIr��module�
pybuilddir�destfiler!r!r"�_generate_posix_vars[sL	
	

	 


r�cCs!ddlm}|j|�dS)z7Initialize the module as appropriate for POSIX systems.r)r�N)r�r�r�)rMr�r!r!r"�_init_posix�sr�cCsqtd�|d<td�|d<td�|d<d|d<d	|d
<t|d<tjjttj��|d<d
S)z+Initialize the module as appropriate for NTr�LIBDESTr�
BINLIBDESTr�	INCLUDEPYz.pyd�
EXT_SUFFIXz.exe�EXE�VERSION�BINDIRN)r�_PY_VERSION_SHORT_NO_DOTr+r �dirnamer#r[�
executable)rMr!r!r"�_init_non_posix�s


r�c	Cs�|dkri}nddl}|jd�}|jd�}x�|j�}|sXPn|j|�}|r�|jdd�\}}yt|�}Wntk
r�YnX|||<qB|j|�}|rBd||jd�<qBqBW|S)z�Parse a config.h-style file.

    A dictionary containing name/value pairs is returned.  If an
    optional dictionary is passed in as the second argument, it is
    used instead of a new dictionary.
    Nrz"#define ([A-Z][A-Za-z0-9_]+) (.*)
z&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
rfr)rlrm�readlinerrrsrurv)	�fprMrl�	define_rx�undef_rxr�r�r�r�r!r!r"r�s*	

cCsatrBtjdkr3tjjtp'td�}qNtp<t}ntd�}tjj|d�S)zReturn the path of pyconfig.h.r�PCrz
pyconfig-64.h)r�r+rIr r-r3r4r)�inc_dirr!r!r"r�scCsttt��S)z,Return a tuple containing the schemes names.)ry�sortedrHr!r!r!r"r
�scCstS)z*Return a tuple containing the paths names.)�_SCHEME_KEYSr!r!r!r"r	�scCs|rt||�St|SdS)z�Return a mapping containing an install scheme.

    ``scheme`` is the install scheme name. If not provided, it will
    return the default scheme for the current platform.
    N)rOrH)rLrM�expandr!r!r"r
�s
cCst|||�|S)z[Return a path corresponding to the scheme.

    ``scheme`` is the install scheme name.
    )r
)rIrLrMr�r!r!r"r�scGstdkr�iattd<ttd<ttd<ttd<tdtdtd<ttd	<ttd
<ttd<ttd<ttd
<ytj	td<Wnt
k
r�dtd<YnXtjdkr�t
t�ntjdkr�tt�ntjd�}|dk	r|td<nt�td<tjdt�}tjdkr�trstjjt��}tjj||�}q�tjjt��}nt|�td<tjdkr�ddl}|jt�q�n|rg}x$|D]}|jtj|��q�W|StSdS)anWith no arguments, return a dictionary of all configuration
    variables relevant for the current platform.

    On Unix, this means every variable defined in Python's installed Makefile;
    On Windows it's a much smaller set.

    With arguments, return a list of values that result from looking up
    each argument in the configuration variable dictionary.
    N�prefix�exec_prefix�
py_version�py_version_shortrr�py_version_nodot�installed_baser_�installed_platbase�platbase�projectbaser�rerrGr��SO�userbase�srcdirrW)�_CONFIG_VARS�_PREFIX�_EXEC_PREFIX�_PY_VERSIONr��_BASE_PREFIX�_BASE_EXEC_PREFIXr4r[r�r:r+rIr�r�rZrar�r r�rr-r#r\�_osx_support�customize_config_vars�append)rRr�r�r_r��valsrIr!r!r"r�sP














cCs>|dkr.ddl}|jdtd�nt�j|�S)z�Return the value of a single variable using the dictionary returned by
    'get_config_vars()'.

    Equivalent to get_config_vars().get(name)
    r�rNz SO is deprecated, use EXT_SUFFIXr)�warnings�warn�DeprecationWarningrrZ)rIr�r!r!r"rGscCs�tjdkr�d}tjj|�}|d*kr:tjStjjd|�}tj|t|�|�j�}|dkr�dS|dkr�dStjStjd	ks�ttd
�r�tjSdtj	kr�tj	dStj
�\}}}}}|j�jdd
�}|jdd�}|jdd�}|dd�dkrTd||fS|dd�dkr�|ddkr�d}dt|d�d|dd�f}idd6dd6}	|d |	tj
7}q�n�|dd!�d"kr�d||fS|dd�d#kr"d$|||fS|dd%�d&kr�d&}ddl}
|
jd'�}|j|�}|r�|j�}q�nI|dd%�d(kr�ddl}
|
jt�|||�\}}}nd)|||fS)+a�Return a string that identifies the current platform.

    This is used mainly to distinguish platform-specific build directories and
    platform-specific built distributions.  Typically includes the OS name
    and version and the architecture (as supplied by 'os.uname()'),
    although the exact information included depends on the OS; eg. for IRIX
    the architecture isn't particularly important (IRIX only runs on SGI
    hardware), but for Linux the kernel version isn't particularly
    important.

    Examples of returned values:
       linux-i586
       linux-alpha (?)
       solaris-2.6-sun4u
       irix-5.3
       irix64-6.2

    Windows will return one of:
       win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
       win-ia64 (64bit Windows on Itanium)
       win32 (all others - specifically, sys.platform is returned)

    For other non-POSIX platforms, currently just returns 'sys.platform'.
    rz bit (rf�)�amd64z	win-amd64�itaniumzwin-ia64rG�uname�_PYTHON_HOST_PLATFORM�/re� �_�-N��linuxz%s-%s�sunosr�5�solarisz%d.%srr�32biti����64bitl����z.%s��irix�aixz%s-%s.%s��cygwinz[\d.]+rWz%s-%s-%s���)r+rIr[r��findr\rx�lowerr�r9r�rtru�maxsizerlrmrrrsr��get_platform_osxr)r��i�j�look�osname�host�releaser��machine�bitnessrl�rel_rer�r�r!r!r"rSsZ#(cCstS)N)r�r!r!r!r"r�scCsdx]tt|j���D]C\}\}}|dkrHtd|�ntd||f�qWdS)Nrz%s: z
	%s = "%s")�	enumerater�r@�print)�titler�indexrDrEr!r!r"�_print_dict�s+rcCsdtjkrt�dStdt��tdt��tdt��t�tdt��t�tdt	��dS)z*Display all information sysconfig detains.z--generate-posix-varsNzPlatform: "%s"zPython version: "%s"z!Current installation scheme: "%s"�Paths�	Variables)
r[�argvr�r	rrrPrr
rr!r!r!r"�_main�sr�__main__)zstdlibz
platstdlibzpurelibzplatlibzincludezscriptszdatai����i����i�)r$r2)zposix_prefixz
posix_home)A�__doc__r+r[Zos.pathrr�__all__rHr�r��splitr�r�r�r rKr�r��base_prefixr�r�r��base_exec_prefixr�r��
_USER_BASEr#r�r�r4�getcwdrIr�r-r9r0�getattrr3�endswithr6r�rLr>rFrOrPrar�rr�r�r�rrr
r	r
rrrrrrr�__name__r!r!r!r"�<module>s�		++!+!
	
z
? M[