HEX
Server: Apache/2.4.62 (Debian)
System: Linux MIA-VPS-VM01781 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User: webmaster (1001)
PHP: 8.2.29
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3.7/__pycache__/sysconfig.cpython-37.pyc
B

U��e�_�
@sdZddlZddlZddlmZmZdddddd	d
ddd
dgZddddddddd�ddddddddd�ddddddddd�d d d!d!d"d#d$d%�d&d&d'd'd(d)d$d%�d*d*d+d+d,d)d$d%�d-�Zd%Zej	�
�dZd.ejdd/�Z
d0ejdd/�Zej�ej�Zej�ej�Zej�ej�Zej�ej�ZdadZd1d2�Zej�rPej�eej��Znee���Zej d3k�r�e�!��"d4��r�eej�#eee��Zd5ej$k�r�eej$d5�Zd6d7�Z%e&ed8d�Z'ej d3k�r�d9d:�Z(e(e�Ze(e'�Z'dhd<d=�Z)e)d>�Z*e*�rx&d?D]Z+d@ee+dA<dBee+dC<�q�WdDdE�Z,dFdG�Z-dHdI�Z.dJdK�Z/dLdM�Z0didNdO�Z1dPd�Z2dQdR�Z3dSdT�Z4dUdV�Z5dWdX�Z6djdYd�Z7dZd�Z8d[d
�Z9d\d	�Z:e/�dd>fd]d
�Z;e/�dd>fd^d�Z<d_d�Z=d`d�Z>dad�Z?dbd�Z@dcdd�ZAdedf�ZBeCdgk�r�eB�dS)kz-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}/lib/python{py_version_short}z'{platbase}/lib/python{py_version_short}z1{base}/lib/python{py_version_short}/site-packagesz5{platbase}/lib/python{py_version_short}/site-packagesz;{installed_base}/include/python{py_version_short}{abiflags}z?{installed_platbase}/include/python{py_version_short}{abiflags}z
{base}/binz{base})�stdlib�
platstdlib�purelib�platlib�include�platinclude�scripts�dataz{installed_base}/lib/pythonz{base}/lib/pythonz{installed_base}/include/pythonz{installed_base}/Libz
{base}/Libz{base}/Lib/site-packagesz{installed_base}/Includez{base}/Scriptsz#{userbase}/Python{py_version_nodot}z1{userbase}/Python{py_version_nodot}/site-packagesz+{userbase}/Python{py_version_nodot}/Includez+{userbase}/Python{py_version_nodot}/Scriptsz
{userbase})rrrrrrrz'{userbase}/lib/python{py_version_short}z5{userbase}/lib/python{py_version_short}/site-packagesz+{userbase}/include/python{py_version_short}z{userbase}/binz{userbase}/lib/pythonz#{userbase}/lib/python/site-packagesz{userbase}/include)�posix_prefix�
posix_home�ntZnt_userZ
posix_userZosx_framework_userz%d.%d�z%d%dcCs"yt|�Stk
r|SXdS)N)r�OSError)�path�r�/usr/lib/python3.7/sysconfig.py�_safe_realpathdsrr)z\pcbuild\win32z\pcbuild\amd64Z_PYTHON_PROJECT_BASEcCs.x(dD] }tj�tj�|d|��rdSqWdS)N)z
Setup.distzSetup.localZModulesTF)�osr�isfile�join)�d�fnrrr�_is_python_source_dirys
r%Z_homecCs0|r,tj�|��tj�tj�td���r,tS|S)NZPCbuild)r r�normcase�
startswithr"�_PREFIX)r#rrr�_fix_pcbuild�sr)FcCs|rtrtt�Stt�S)N)�	_sys_homer%�
_PROJECT_BASE)Z
check_homerrr�is_python_build�sr,T)rrz{srcdir}/Includerz{projectbase}/.rc
Csfy|jf|�Stk
r`y|jftj�Stk
rZ}ztd|�d�Wdd}~XYnXYnXdS)Nz{%s})�format�KeyErrorr �environ�AttributeError)�sZ
local_vars�varrrr�_subst_vars�sr3cCs4|��}x&|��D]\}}||kr$q|||<qWdS)N)�keys�items)Ztarget_dictZ
other_dictZtarget_keys�key�valuerrr�_extend_dict�s
r8cCsfi}|dkri}t|t��xDt|��D]4\}}tjdkrHtj�|�}tj�t	||��||<q*W|S)N)�posixr)
r8r�_INSTALL_SCHEMESr5r �namer�
expanduser�normpathr3)�scheme�varsZresr6r7rrr�_expand_vars�s
r@cCstjdkrdStjS)Nr9r)r r;rrrr�_get_default_scheme�s
rAcCsztj�dd�}|r|Sdd�}tjdkrBtj�d�p6d}||d�Stjdkrptjrp|dd	tjd
tjdd��S|dd�S)
NZPYTHONUSERBASEcWstj�tjj|��S)N)r rr<r")�argsrrr�joinuser�sz_getuserbase.<locals>.joinuserrZAPPDATA�~ZPython�darwinZLibraryz%d.%drz.local)r r/�getr;�sys�platform�
_framework�version_info)Zenv_baserC�baserrr�_getuserbase�s


rLc	CsZddl}|�d�}|�d�}|�d�}|dkr2i}i}i}t|dd��}|��}	WdQRXx�|	D]�}
|
�d�s`|
��d	kr|q`|�|
�}|r`|�d
d�\}}
|
��}
|
�dd	�}d
|kr�|
||<q`yt	|
�}
Wn$t
k
r�|
�dd
�||<Yq`X|
||<q`Wt|���}d}�x
t
|�dk�r�x�t|�D�]�}||}|�|�}|�|�}|�rv|�rv|��|��k�rp|n|}n|�r�|n|}|dk	�r�|�d
�}d}||k�r�t||�}n�||k�r�d}nx|tjk�r�tj|}n`||k�r0|�d��r
|dd�|k�r
d	}n$d||k�rd}nt|d|�}nd	||<}|�r||��d�}|d|���||}d
|k�r~|||<n~yt	|�}Wn"t
k
�r�|��||<Yn
X|||<|�|�|�d��r|dd�|k�r|dd�}||k�r|||<n|||<|�|��q,W�qWx.|��D]"\}}
t|
t��r&|
��||<�q&W|�|�|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_]*)}�surrogateescape)�errors�#��rz$$�$)ZCFLAGSZLDFLAGSZCPPFLAGSTFZPY_�)�re�compile�open�	readlinesr'�strip�match�group�replace�int�
ValueError�listr4�len�tuple�search�start�strr r/�end�remover5�
isinstance�update)�filenamer?rTZ_variable_rxZ_findvar1_rxZ_findvar2_rxZdoneZnotdone�f�lines�line�m�n�vZtmpvZ	variablesZrenamed_variablesr;r7Zm1Zm2�found�itemZafter�krrr�_parse_makefile�s�	


















rrcCsdtrtj�tptd�Sttd�r0dttj	f}nd}ttj
d�rP|dtj
j7}tj�td�|d�S)z Return the path of the Makefile.ZMakefile�abiflagszconfig-%s%sZconfig�
_multiarchz-%sr)
�
_PYTHON_BUILDr rr"r*r+�hasattrrG�_PY_VERSION_SHORTrs�implementationrtr)Zconfig_dir_namerrrrMs
c
Cs(tj�ddjtjtjttjdd�d��S)NZ_PYTHON_SYSCONFIGDATA_NAMEz+_sysconfigdata_{abi}_{platform}_{multiarch}rtrP)ZabirH�	multiarch)	r r/rFr-rGrsrH�getattrrxrrrr�_get_sysconfigdata_nameZs
r{c
Cs�ddl}i}t�}yt||�WnJtk
rj}z,d|}t|d�rR|d|j}t|��Wdd}~XYnXt�}y"t|��}t||�WdQRXWnJtk
r�}z,d|}t|d�r�|d|j}t|��Wdd}~XYnXt	r�|d|d<t
�}dtjk�r$ddl
}|�|�}	||	_|	tj|<d	t�tf}
ttd
��rF|
d7}
tj|
dd
�tj�|
|d�}t|ddd��(}|�d�|�d�|j||d�WdQRXtdddd��}|�|
�WdQRXdS)z;Generate the Python module containing build-time variables.rNz.invalid Python installation: unable to open %s�strerrorz (%s)ZLDSHAREDZ	BLDSHAREDrEzbuild/lib.%s-%sZgettotalrefcountz-pydebugT)�exist_okz.py�w�utf8)�encodingzB# system configuration generated and used by the sysconfig module
zbuild_time_vars = )�streamzpybuilddir.txt�ascii)�pprintrrrrrvr|rrVrrur{rGrH�types�
ModuleType�build_time_vars�modulesrrwr �makedirsrr"�write)r�r?Zmakefile�e�msgZconfig_hrir;r��moduleZ
pybuilddirZdestfilerrr�_generate_posix_varscsL







r�cCs0t�}t|t�t�dgd�}|j}|�|�dS)z7Initialize the module as appropriate for POSIX systems.r�rN)r{�
__import__�globals�localsr�rg)r?r;Z_tempr�rrr�_init_posix�sr�cCsVtd�|d<td�|d<td�|d<d|d<d	|d
<t|d<tj�ttj��|d<d
S)z+Initialize the module as appropriate for NTrZLIBDESTrZ
BINLIBDESTrZ	INCLUDEPYz.pyd�
EXT_SUFFIXz.exeZEXEZVERSIONZBINDIRN)r�_PY_VERSION_SHORT_NO_DOTr r�dirnamerrG�
executable)r?rrr�_init_non_posix�sr�c	Cs�|dkri}ddl}|�d�}|�d�}xx|��}|s8P|�|�}|r�|�dd�\}}yt|�}Wntk
rvYnX|||<q*|�|�}|r*d||�d�<q*W|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_]+) [*]/
rQr)rTrU�readlinerYrZr\r])	�fpr?rTZ	define_rxZundef_rxrkrlrmrnrrrr�s*




cCsBtr,tjdkr"tj�tptd�}q4tp(t}ntd�}tj�|d�S)zReturn the path of pyconfig.h.rZPCrz
pyconfig.h)rur r;rr"r*r+r)Zinc_dirrrrr�s

cCsttt��S)z,Return a tuple containing the schemes names.)r`�sortedr:rrrrr
�scCstS)z*Return a tuple containing the paths names.)�_SCHEME_KEYSrrrrr	�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)r@r:)r>r?�expandrrrr
�s
cCst|||�|S)z[Return a path corresponding to the scheme.

    ``scheme`` is the install scheme name.
    )r
)r;r>r?r�rrrr�scGs�tdk�rhiattd<ttd<ttd<ttd<ttd<ttd<ttd<ttd	<ttd
<ttd<yt	j
td<Wntk
r�d
td<YnXtj
dkr�tt�tj
dkr�tt�t�d�}|dk	r�|td<t�td<td�}|r�d|td<nd
td<t�dt�}tj
dk�r>t�r0tj�t��}tj�||�}ntj�t��}t|�td<t	jdk�rhddl}|�t�|�r�g}x|D]}|�t�|���qxW|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_prefixZ
py_versionZpy_version_shortZpy_version_nodotZinstalled_baserKZinstalled_platbaseZplatbaseZprojectbasersrPrr9r��SOZuserbaseZ	MULTIARCH�/Zmultiarchsubdir�srcdirrEr)�_CONFIG_VARSr(�_EXEC_PREFIX�_PY_VERSIONrwr��_BASE_PREFIX�_BASE_EXEC_PREFIXr+rGrsr0r r;r�r�rFrLrrurr�rr"rrH�_osx_supportZcustomize_config_vars�append)rBr�ryr�rKr�Zvalsr;rrrrsX






cCs*|dkrddl}|�dtd�t��|�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�DeprecationWarningrrF)r;r�rrrrWsc
Cs�tjdkr"dtj��krdStjStjdks6ttd�s<tjSdtjkrPtjdSt��\}}}}}|���	dd�}|�	d	d
�}|�	dd�}|dd
�dkr�d||fS|dd
�dk�r|ddk�r�d}dt
|d�d|dd�f}ddd�}|d|tj7}n�|dd�dk�r(d|||fS|dd�dk�rjd}ddl}|�
d�}|�|�}|�r�|��}n2|dd�d k�r�ddl}	|	�t�|||�\}}}d!|||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; on Linux, the kernel version
    isn't particularly important.

    Examples of returned values:
       linux-i586
       linux-alpha (?)
       solaris-2.6-sun4u

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

    For other non-POSIX platforms, currently just returns 'sys.platform'.

    rZamd64z	win-amd64r9�unameZ_PYTHON_HOST_PLATFORMr�rP� �_�-N�Zlinuxz%s-%sZsunosr�5Zsolarisz%d.%srSrZ32bitZ64bit)i���l����z.%sZaixz%s-%s.%s��cygwinz[\d.]+rEz%s-%s-%s)r r;rG�version�lowerrHrvr/r�r[r\�maxsizerTrUrYrZr�Zget_platform_osxr)
ZosnameZhost�releaser��machineZbitnessrTZrel_rerlr�rrrrcsF


 



cCstS)N)rwrrrrr�scCsJxDtt|����D]0\}\}}|dkr2td|�td||f�qWdS)Nrz%s: z
	%s = "%s")�	enumerater�r5�print)�titler�indexr6r7rrr�_print_dict�sr�cCsfdtjkrt�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"ZPathsZ	Variables)
rG�argvr�r�rrrAr�r
rrrrr�_main�s
r��__main__)F)N)N)D�__doc__r rG�os.pathrr�__all__r:r�r��splitr�rJrwr�rr=r�r(�base_prefixr�r�r��base_exec_prefixr�r�Z
_USER_BASErr�r�r+�getcwdr;r��endswithr"r/r%rzr*r)r,rur>r3r8r@rArLrrrr{r�r�r�rrr
r	r
rrrrrr�r��__name__rrrr�<module>s�

	
	
|
	?
 SL