HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1991111/cwd/usr/lib/python3.11/__pycache__/
Upload File :
Current File : //proc/1991111/cwd/usr/lib/python3.11/__pycache__/_distutils_system_mod.cpython-311.pyc
�

*�Kg�����dZddlZddlZddlZddlZddlmcmZ	ddl
mcmZddl
m
Z
mZmZddlmZGd�de	j��ZGd�dej��Zd	�Zd
�Zd�Zd�Zd
�Zd�Ze��dS)a
Apply Debian-specific patches to distutils commands.

Extracts the customized behavior from patches as reported
in pypa/distutils#2 and applies those customizations (except
for scheme definitions) to those commands.

Place this module somewhere in sys.path to take effect.
�N)�to_filename�	safe_name�safe_version)�DistutilsOptionErrorc�d��eZdZeejj��dgzZ�fd�Z�fd�Z�fd�Z	�xZ
S)�install)zinstall-layout=Nz7installation layout to choose (known values: deb, unix)c�d��t�����d|_d|_dS�N��super�initialize_options�
prefix_option�install_layout��self�	__class__s ��,/usr/lib/python3.11/_distutils_system_mod.pyr
zinstall.initialize_options �/���
���"�"�$�$�$�!���"�����c���|dkr�|jrK|j���dvrd}n�|j���dvrd}n�td���|jr(tj�|j��dkst��rd}nFtj�|j��dkrdx|_|_	dx|_
|_d}t���
|��dS)	N�posix_prefix)�deb�
deb_system)�unix�"unknown value for --install-layout�
/usr/local�/usr�posix_local)r�lowerrr�os�path�normpath�prefix�is_virtual_environment�exec_prefix�install_base�install_platbaser�
select_scheme)r�namers  �rr(zinstall.select_scheme%s
����>�!�!��"�
%��&�,�,�.�.�'�9�9�'�D�D��(�.�.�0�0�H�<�<�)�D�D�.�<�>�>�>��%�
%��7�#�#�D�K�0�0�L�@�@�+�-�-�A�%����7�#�#�D�K�0�0�L�@�@�5;�;�D�K�$�"2�@F�F�D�%��(=�$��
�����d�#�#�#�#�#rc�`��|j|_t�����dSr
)r#rr�
finalize_unixrs �rr+zinstall.finalize_unix:s)���!�[���
���������r)�__name__�
__module__�__qualname__�list�orig_installr�user_optionsr
r(r+�
__classcell__�rs@rrrs���������4��,�9�:�:�	D�>��L�
#�#�#�#�#�
$�$�$�$�$�* � � � � � � � � rrc�p��eZdZeejj��dgzZ�fd�Z�fd�Ze	d���Z
�xZS)�install_egg_info)zinstall-layoutNzcustom installation layoutc�d��t�����d|_d|_dSr
rrs �rr
z#install_egg_info.initialize_optionsDrrc���|�dd��|�dd��t�����dS)Nr)rr)rr)�set_undefined_optionsr�finalize_optionsrs �rr9z!install_egg_info.finalize_optionsIsM����"�"�9�-P�Q�Q�Q��"�"�9�-N�O�O�O�
��� � �"�"�"�"�"rc��|jrH|j���dvrtd���|j���dk}n|jrd}nd}|rkt	t|j��������dt	t|j�	�������d�}n~dt	t|j�������t	t|j�	������gtjdd	��Rz}|S)
N)rrrrFT�-z	.egg-infoz%s-%s-py%d.%d.egg-info�)rrrrrr�distribution�get_namer�get_version�sys�version_info)r�no_pyver�basenames   rrCzinstall_egg_info.basenameNsF����	��&�,�,�.�.�/�A�A�*�8�:�:�:��+�1�1�3�3�u�<�H�H�
�
�	��H�H��H��
	��I�d�&7�&@�&@�&B�&B�C�C�D�D�D�D��L��):�)F�)F�)H�)H�I�I�J�J�J�J��H�H�
0��I�d�&7�&@�&@�&B�&B�C�C�D�D��L��):�)F�)F�)H�)H�I�I�J�J�3��!�"�1�"�%�3�3��H�
�r)r,r-r.r/�orig_install_egg_infor5r1r
r9�propertyrCr2r3s@rr5r5?s���������4�-�>�K�L�L�>�P��L�#�#�#�#�#�
#�#�#�#�#�
����X�����rr5c�`�tjtjkpttd��S)N�real_prefix)r@�base_prefixr#�hasattr�rrr$r$gs ���?�c�j�(�G�G�C��,G�,G�Grc��|p tj�|��dv}|r|S|r0t��s"tj�|ddd��Stj�|d��S)N)rr�lib�python3z
dist-packagesz
site-packages)r r!r"r$�join)�standard_lib�	libpython�early_prefixr#�is_default_prefixs     r�
_posix_librSksz��(�(�d�B�G�,<�,<�\�,J�,J�Nd�,d���8���	�8�#9�#;�#;�8��w�|�|�F�E�9�o�F�F�F��w�|�|�I��7�7�7rc��d|vrL|dkr	|d}ntjdd}|dkrd|vr|�dd��}||d<|S)aN
    Given a scheme name and the resolved scheme,
    if the scheme does not include headers, resolve
    the fallback scheme for the name and use headers
    from it. pypa/distutils#88

    headers: module headers install location (posix_local is /local/ prefixed)
    include: cpython headers (Python.h)
    See also: bpo-44445
    �headersr�includerz/local/z	/include/z/local/include/)r0�INSTALL_SCHEMES�replace)r)�schemerUs   r�_inject_headersrZusp�������>�!�!��Y�'�G�G�"�2�>�B�9�M�G��=� � �Y�g�%=�%=��o�o�k�3D�E�E�G�#��y���Mrc����fd�}|S)z�
    Implement the _inject_headers modification, above, but before
    _inject_headers() was introduced, upstream. So, slower and messier.
    c�p�����}|���D]\}}t||���|Sr
)�itemsrZ)�schemesr)rY�
_load_schemess   �r�wrapped_load_schemesz2load_schemes_wrapper.<locals>.wrapped_load_schemes�sA����-�/�/��#�M�M�O�O�	*�	*�L�D�&��D�&�)�)�)�)��rrJ)r_r`s` r�load_schemes_wrapperra�s$���
�����
 �rc�j�dD]/}||vr)tj|d���}t||��||<�0dS)zR
    Ensure that the custom schemes we refer to above are present in schemes.
    )rrrF)�expandN)�	sysconfig�	get_pathsrZ)r^r)rYs   r�add_debian_schemesrf�sQ��>�:�:���w����(��e�<�<�<�F�+�D�&�9�9�G�D�M��:�:rc�l�tt_tt_tt
j_ttd��rtt_dSttd��r%ttj
��t_
dSttj��dS)NrZr_)
rr0r5rDrS�	distutilsrdrIrZrar_rfrWrJrr�apply_customizationsri�s���"�L��-=��*�%/�I��"��|�.�/�/�
9�'6��$�$�$�	���	/�	/�9�%9�,�:T�%U�%U��"�"�"�
	�<�7�8�8�8�8�8r)�__doc__r r@rd�distutils.sysconfigrh�distutils.command.install�commandrr0�"distutils.command.install_egg_infor5rDrrr�distutils.errorsrr$rSrZrarfrirJrr�<module>rps�����
�	�	�	�
�
�
�
���������0�0�0�0�0�0�0�0�0�B�B�B�B�B�B�B�B�B�����������
2�1�1�1�1�1�" �" �" �" �" �l�"�" �" �" �J%�%�%�%�%�,�=�%�%�%�PH�H�H�8�8�8����,
 �
 �
 �:�:�:�9�9�9�$������r