%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/setuptools/_distutils/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/setuptools/_distutils/__pycache__/sysconfig.cpython-312.pyc

�


_�d�I��f�dZddlZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZdejvZ
ejjej �Zejjej$�Zejjej(�Zejjej,�Zdej0vr)ejj3ej0d�Zn\ej6r?ejj9ejj3ej6��Znej:�Zd	�Zeed
d�Z d�Z!ejDdk(red
��Z#e#e�Ze#e �Z d�Z$e$�Z%dZ&	e%sejNZ&d�Z)d%d�Z*ed��Z+d�Z,d�Z-d�Z.d�Z/d�Z0d�Z1d&d�Z2d�Z3d�Z4d�Z5d'd�Z6ejnd�Z8ejnd�Z9ejnd �Z:d'd!�Z;d"�Z<da=d#�Z>d$�Z?y#e($rY�wxYw)(a�Provide access to Python's configuration information.  The specific
configuration variables available depend heavily on the platform and
configuration.  The values may be retrieved using
get_config_var(name), and the list of variables is available via
get_config_vars().keys().  Additional convenience functions are also
available.

Written by:   Fred L. Drake, Jr.
Email:        <fdrake@acm.org>
�N�)�DistutilsPlatformError)�
py39compat)�	pass_none�__pypy__�_PYTHON_PROJECT_BASEc�t��tj|�jd��t�fd�dD��S)z]
    Return True if the target directory appears to point to an
    un-installed Python.
    �Modulesc3�\�K�|]#}�j|�j����%y�w�N)�joinpath�is_file)�.0�fn�moduless  ��A/usr/lib/python3/dist-packages/setuptools/_distutils/sysconfig.py�	<genexpr>z(_is_python_source_dir.<locals>.<genexpr>2s%�����Q�"�w����#�+�+�-�Q�s�),)�SetupzSetup.local)�pathlib�Pathr
�any)�drs @r�_is_python_source_dirr,s/���
�l�l�1�o�&�&�y�1�G��Q�8P�Q�Q�Q��_homec��tjj|�jtjj|��S)z,
    Return True if a is a parent of b.
    )�os�path�normcase�
startswith)�dir_a�dir_bs  r�
_is_parentr#8s3���7�7���E�"�-�-�b�g�g�.>�.>�u�.E�F�Fr�ntc�J��ttf}�fd�|D�}t|��S)Nc3�v�K�|]0}t�tjj|d��r|���2y�w)�PCbuildN)r#rr�join)r�prefixrs  �rrz_fix_pcbuild.<locals>.<genexpr>Es2�����
���!�R�W�W�\�\�&�)�<�=�
�
�s�69)�PREFIX�BASE_PREFIX�next)r�prefixes�matcheds`  r�_fix_pcbuildr/As-����;�&��
�"�
��
�G�Q��rc�J�trtt�Stt�Sr)�	_sys_homer�project_base�rr�
_python_buildr4Ps���$�Y�/�/� ��.�.r�c�.�dtjddzS)z�Return a string containing the major and minor Python version,
    leaving off the patchlevel.  Sample return values could be '1.5'
    or '2.2'.
    z%d.%dN�)�sys�version_infor3rr�get_python_versionr:fs��
�S�%�%�b�q�)�)�)rc���|rtnt}|�|n|}	t�dtj��}||||�S#t
$rt
dtjz��wxYw)a�Return the directory containing installed Python header files.

    If 'plat_specific' is false (the default), this is the path to the
    non-platform-specific header files, i.e. Python.h and so on;
    otherwise, this is the path to platform-specific header files
    (namely pyconfig.h).

    If 'prefix' is supplied, use it instead of sys.base_prefix or
    sys.base_exec_prefix -- i.e., ignore 'plat_specific'.
    �_get_python_inc_zFI don't know where Python installs its C header files on platform '%s')�BASE_EXEC_PREFIXr+�globalsr�name�KeyErrorr)�
plat_specificr)�default_prefix�resolved_prefix�getters     r�get_python_incrEnsw��*7�%�K�N� &� 2�f��O�
���-�b�g�g�Y�7�8���/�6�=�9�9���
�$�
�!#���
)�
�	
�
�s	�>�&A$c�H�tjj|�r|SdS)z5
    Replace path with None if it doesn't exist.
    N)rr�exists)rs r�_extantrH�s��
�7�7�>�>�$�'�4�1�T�1rc���tr3tjdkr tjj|d�St
|�xs"tt||��xst|�S)N����include)
�IS_PYPYr8r9rrr(�_get_python_inc_posix_pythonrH�_get_python_inc_from_config�_get_python_inc_posix_prefix�r)�spec_prefixrAs   r�_get_python_inc_posixrT�sV���3�#�#�f�,��w�w�|�|�F�I�.�.�$�]�3�	0��.�}�k�J�K�	0�'��/�rc��tsy|rtxstStjjt
d�d�}tjj|�S)z�
    Assume the executable is in the build directory. The
    pyconfig.h file should be in the same directory. Since
    the build directory may not be the source directory,
    use "srcdir" from the makefile to find the "Include"
    directory.
    N�srcdir�Include)�python_buildr1r2rrr(�get_config_var�normpath)rA�incdirs  rrOrO�sF������(�L�(�
�W�W�\�\�.��2�I�
>�F�
�7�7���F�#�#rc�*�|�td|zdz�Sy)aj
    If no prefix was explicitly specified, provide the include
    directory from the config vars. Useful when
    cross-compiling, since the config vars may come from
    the host
    platform Python installation, while the current Python
    executable is from the build platform installation.

    >>> monkeypatch = getfixture('monkeypatch')
    >>> gpifc = _get_python_inc_from_config
    >>> monkeypatch.setitem(gpifc.__globals__, 'get_config_var', str.lower)
    >>> gpifc(False, '/usr/bin/')
    >>> gpifc(False, '')
    >>> gpifc(False, None)
    'includepy'
    >>> gpifc(True, None)
    'confincludepy'
    N�CONF�	INCLUDEPY)rY)rArSs  rrPrP�s$��&���f�}�4�{�B�C�C�rc��trdnd}|t�ztz}tjj|d|�S)N�pypy�pythonrM)rNr:�build_flagsrrr()r)�implementation�
python_dirs   rrQrQ�s5��&�V�H�N��"4�"6�6��D�J�
�7�7�<�<��	�:�6�6rc��tr\tjj|d�tjjztjj|d�zStjj|d�S)NrM�PC)rXrrr(�pathseprRs   r�_get_python_inc_ntrh�s\���
�G�G�L�L���+��g�g�o�o�
��g�g�l�l�6�4�(�
)�	
�
�7�7�<�<��	�*�*rc�J�|r|Stjj|d�S)N�
site-packages)rrr()�standard_lib�	libpython�early_prefixr)s    r�
_posix_librn�s ������w�w�|�|�I��7�7rc��trotjdkr\|�t}|r2tj
j
|dtjd�Stj
j
|d�S|}|�'|r|xrtxst}n|xrtxst}tjdk(r\|s|rttdd�}nd}trdnd	}tj
j
|||t�z�}t||||�Stjd
k(rC|r tj
j
|d�Stj
j
|dd�Stdtjz��)
aSReturn the directory containing the Python library (standard or
    site additions).

    If 'plat_specific' is true, return the directory containing
    platform-specific modules, i.e. any module from a non-pure-Python
    module distribution; otherwise, return the platform-shared library
    directory.  If 'standard_lib' is true, return the directory
    containing standard Python library modules; otherwise, return the
    directory for site-specific modules.

    If 'prefix' is supplied, use it instead of sys.base_prefix or
    sys.base_exec_prefix -- i.e., ignore 'plat_specific'.
    rJz
lib-pythonrrj�posix�
platlibdir�libr`rar$�Libz?I don't know where Python installs its library on platform '%s')rNr8r9r*rrr(�versionr=r+�EXEC_PREFIXr?�getattrr:rnr)rArkr)rm�libdirrcrls       r�get_python_librx�s:���3�#�#�f�,��>��F���7�7�<�<���c�k�k�!�n�E�E��w�w�|�|�F�O�4�4��L�
�~��"�7�'7�F�;�F�"�2�{�<�f�F�	�w�w�'���L��S�,��6�F��F�#*�����G�G�L�L����BT�BV�1V�W�	��,�	�<��H�H�	���D����7�7�<�<���.�.��7�7�<�<����?�?�$�
�!#���
)�
�	
rc
���|jdk(�r�tjdk(r-td�s"ddl}|jt�dtd<tddd	d
ddd
d�\}}}}}}}}	dtjvrItjd}
dtjvr"|j|�r|
|t|�dz}|
}dtjvrtjd}dtjvrtjd}dtjvrtjd}n|dz}dtjvr|dztjdz}d	tjvr2|dztjd	z}|dztjd	z}dtjvrK|dztjdz}|dztjdz}|dztjdz}d
tjvrtjd
}dtjvr|dztjdz}n|dz|	z}|dz|z}
|j||
|
dz|z||||��dtjvr?|jjdd�r#|jtjd��||_yy)z�Do any platform-specific customization of a CCompiler instance.

    Mainly needed on Unix, so we can plug in the information that
    varies across Unices and is stored in Python's Makefile.
    �unix�darwin�CUSTOMIZED_OSX_COMPILERrN�True�CC�CXX�CFLAGS�CCSHARED�LDSHARED�SHLIB_SUFFIX�AR�ARFLAGS�CPPz -E�LDFLAGS� �CPPFLAGS)�preprocessor�compiler�compiler_so�compiler_cxx�	linker_so�
linker_exe�archiver�RANLIB�ranlib)r�)�
compiler_typer8�platformrY�_osx_support�customize_compiler�_config_vars�get_config_varsr�environr �len�set_executables�executables�get�shared_lib_extension)r�r��cc�cxx�cflags�ccshared�ldshared�shlib_suffix�ar�ar_flags�newcc�cppr��cc_cmds              rr�r�s�������'��<�<�8�#�"�";�<�#��/�/��=�:@��6�7�
���������	
�		
����������2�:�:���J�J�t�$�E�����+��0C�0C�B�0G�!�8�C��G�I�#6�6���B��B�J�J���*�*�U�#�C�����#��z�z�*�-�H��B�J�J���*�*�U�#�C��u�*�C���
�
�"��#�~��
�
�9�(=�=�H��r�z�z�!��c�\�B�J�J�x�$8�8�F��#�~��
�
�8�(<�<�H�����#���)�b�j�j��4�4�C��c�\�B�J�J�z�$:�:�F��#�~��
�
�:�(>�>�H��2�:�:�����D�!�B���
�
�"��C�x�"�*�*�Y�"7�7�H��C�x�(�*�H��c��F�"��� � ������x�/�����	!�	
��r�z�z�!�h�&:�&:�&>�&>�x��&N��$�$�B�J�J�x�,@�$�A�(4��%�g(rc��trntjdk(r-tjj	t
xstd�}nt
xst}tjj	|d�Stj�S)z2Return full pathname of installed pyconfig.h file.r$rfz
pyconfig.h)	rXrr?rr(r1r2�	sysconfig�get_config_h_filename)�inc_dirs rr�r�jsW���
�7�7�d�?��g�g�l�l�9�#<��d�C�G��/�<�G��w�w�|�|�G�\�2�2��.�.�0�0rc�*�tj�S)zAReturn full pathname of installed Makefile from the Python build.)r��get_makefile_filenamer3rrr�r�vs���*�*�,�,rc�0�tj||��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.
    )�vars)r��parse_config_h)�fp�gs  rr�r�{s���#�#�B�Q�/�/rz"([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_]*)}c�F�ddlm}||dddd��}|�i}i}i}	|j�}|�njtj	|�}|rR|jdd�\}}	|	j
�}	|	jd	d
�}
d|
vr|	||<n	t|	�}	|	||<�}d}|�r^t|�D�]K}||}
tj|
�xstj|
�}|�r|jd�}d}||vrt||�}no||vrd
}nh|tj vrtj |}nB||vr7|j#d�r
|dd|vrd
}n#d|z|vrd
}nt|d|z�}nd
x||<}|s��|
|j%�d}|
d|j'�z|z}
d|vr|
||<��	t|
�}
|
||<||=|j#d�s��.|dd|vs��7|dd}||vs��B|
||<��I||=��N|r��^|j)�|j+�D])\}}	t-|	t�s�|	j
�||<�+|j/|�|S#t$r|	jd	d�||<Y���wxYw#t$r|
j
�||<Y��wxYw)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.
    r)�TextFiler�surrogateescape)�strip_comments�skip_blanks�
join_lines�errorsNTr7z$$r5�$)r�r�r�F�PY_rK)�distutils.text_filer��readline�_variable_rx�match�group�strip�replace�int�
ValueError�list�_findvar1_rx�search�_findvar2_rx�strrr�r �end�start�close�items�
isinstance�update)rr�r�r��done�notdone�line�m�n�v�tmpv�renamed_variablesr?�value�found�item�after�ks                  r�parse_makefiler��s���-�	�
�1�!��BS�
�B�	�y���
�D��G�
��{�{�}���<�����t�$����7�7�1�a�=�D�A�q����	�A��9�9�T�2�&�D��d�{����
� ��A��A�
 �D��G�)�4:�����M�.	"�D��D�M�E��#�#�E�*�H�l�.A�.A�%�.H�A���G�G�A�J������9��t�A�w�<�D��'�\�!�E��"�*�*�_��:�:�a�=�D��+�+����u�-�$�q�r�(�>O�2O�!�����g�-� %�� #�4���	�?�3��%'�'�D��G�d��!�!�%�%�'�)�,�E�!�+�A�G�G�I�.��5��=�E��e�|�(-���
�/�$'��J�E�*/�D��J�#�D�M��?�?�5�1�d�1�2�h�BS�6S�#'���8�D�#�4�/�-2��T�
��D�M�].	"��b�H�H�J��
�
�� ���1��a����g�g�i�D��G� �
�H�H�T�N��H��O"�3��i�i��c�2�D��G�3��` *�7�).����D��J�7�s$�	I�2J�I>�=I>�J �J c���	tj|�xstj|�}|r@|j�\}}|d||j	|jd��z||dz}n	|S�r)a�Expand Makefile-style variables -- "${foo}" or "$(foo)" -- in
    'string' according to 'vars' (a dictionary mapping variable names to
    values).  Variables not present in 'vars' are silently expanded to the
    empty string.  The variable values in 'vars' should not contain further
    variable expansions; if 'vars' is the output of 'parse_makefile()',
    you're fine.  Returns a variable-expanded version of 's'.
    rrN)r�r�r��spanr�r�)�sr�r��begr�s     r�expand_makefile_varsr��sr�������"�<�l�&9�&9�!�&<�������J�S�#��!�C��4�8�8�A�G�G�A�J�/�/�!�C�D�'�9�A���H�rc���t�;tj�j�at	j
t�|r#|D�cgc]}tj
|���c}StScc}w)a�With no arguments, return a dictionary of all configuration
    variables relevant for the current platform.  Generally this includes
    everything needed to build extensions and install both pure modules and
    extensions.  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.
    )r�r�r��copyr�add_ext_suffixr�)�argsr?s  rr�r�sU���� �0�0�2�7�7�9���!�!�,�/�8<�t�4�t�L���T�"�4�N�,�N��4s�A-c�t�|dk(rddl}|jdtd�t�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)
    �SOrNz SO is deprecated, use EXT_SUFFIXr7)�warnings�warn�DeprecationWarningr�r�)r?r�s  rrYrY&s4��
�t�|���
�
�8�:L�a�P��� � ��&�&r)rN)rrNr)@�__doc__r�rer8r�rr�rr5r�
_functoolsr�builtin_module_namesrNrrZr)r*�exec_prefixru�base_prefixr+�base_exec_prefixr=r��abspathr2�
executable�dirname�getcwdrrvr1r#r?r/r4rXrb�abiflags�AttributeErrorr:rErHrTrOrPrQrhrnrxr�r�r�r��compiler�r�r�r�r�r�r�rYr3rr�<module>r�s6��	�
�	�
���*��!�
��0�0�
0��
���	�	�#�*�*�	%���g�g���s���/���g�g���s���/���7�7�#�#�C�$8�$8�9��
�R�Z�Z�'��7�7�?�?�2�:�:�.D�#E�F�L�
�~�~��w�w���r�w�w���s�~�~�'F�G��!�r�y�y�{��R�
�C��$�'�	�G��7�7�d�?�� �� � ��-�L��Y�'�I�/������	���l�l��*�:�.�2��2��
$� D�.7�	+�8�3
�lY5�x	1�-�
0��r�z�z�?�@���r�z�z�:�;���r�z�z�8�9��i
�X
�2��O�$	'��M�	�	�	�s�"H(�(H0�/H0

Zerion Mini Shell 1.0