Your IP : 18.191.120.103


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/__pycache__/_path.cpython-311.pyc

�

��bg}
���UddlmZddlZddlZddlZddlmZmZmZddl	m
Z
erddlmZee
eje
fZded<edee
eje
f�	��Zd
�Zdd�Zdd�Zejd���ZdS)�)�annotationsN)�
TYPE_CHECKING�TypeVar�Union)�unique_everseen)�	TypeAliasr�StrPath�StrPathT)�boundc�p�tj�|��}tj|d���dS)z1Ensure that the parent directory of `path` existsT)�exist_okN)�os�path�dirname�makedirs)rrs  �G/opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/_path.py�ensure_directoryrs0���g�o�o�d�#�#�G��K��$�'�'�'�'�'�'��p1�p2�return�boolc�B�t|��t|��kS)a�Differs from os.path.samefile because it does not require paths to exist.
    Purely string based (no comparison between i-nodes).
    >>> same_path("a/b", "./a/b")
    True
    >>> same_path("a/b", "a/./b")
    True
    >>> same_path("a/b", "././a/b")
    True
    >>> same_path("a/b", "./a/b/c/..")
    True
    >>> same_path("a/b", "../a/b/c")
    False
    >>> same_path("a", "a/b")
    False
    )�normpath)rrs  r�	same_pathrs�� �B�<�<�8�B�<�<�'�'r�filename�strc��tjdkrtj�|��n|}tj�tj�tj�|������S)z2Normalize a file/dir name for comparison purposes.�cygwin)�sys�platformrr�abspath�normcase�realpathr)r�files  rrr*s^��),���(@�(@�2�7�?�?�8�$�$�$�h�D�
�7���B�G�,�,�R�W�-=�-=�d�-C�-C�D�D�E�E�Erc#�hK�t��}tj�d|��}tj�dd��}	tj�t
|����}td||g��}tj�|��}|r|tjd<dV�||ur"tj�dd��dS|tjd<dS#||ur!tj�dd��n|tjd<wxYw)a�
    Add the indicated paths to the head of the PYTHONPATH environment
    variable so that subprocesses will also see the packages at
    these paths.

    Do this in a context that restores the value on exit.

    >>> getfixture('monkeypatch').setenv('PYTHONPATH', 'anything')
    >>> with paths_on_pythonpath(['foo', 'bar']):
    ...     assert 'foo' in os.environ['PYTHONPATH']
    ...     assert 'anything' in os.environ['PYTHONPATH']
    >>> os.environ['PYTHONPATH']
    'anything'

    >>> getfixture('monkeypatch').delenv('PYTHONPATH')
    >>> with paths_on_pythonpath(['foo', 'bar']):
    ...     assert 'foo' in os.environ['PYTHONPATH']
    >>> os.environ.get('PYTHONPATH')
    �
PYTHONPATH�N)	�objectr�environ�get�pathsep�joinr�filter�pop)�paths�nothing�orig_pythonpath�current_pythonpath�prefix�to_join�new_paths       r�paths_on_pythonpathr71s����*�h�h�G��j�n�n�\�7�;�;�O������b�9�9��7�������!7�!7�8�8�����(:�;�<�<���:�?�?�7�+�+���	0�'/�B�J�|�$�
�����g�%�%��J�N�N�<��.�.�.�.�.�'6�B�J�|�$�$�$���g�%�%��J�N�N�<��.�.�.�.�'6�B�J�|�$�6�6�6�6s
�A2C;�;6D1)rr	rr	rr)rr	rr)�
__future__r�
contextlibrr �typingrrr�more_itertoolsr�typing_extensionsrr�PathLiker	�__annotations__r
rrr�contextmanagerr7�rr�<module>rAs-��"�"�"�"�"�"�"�����	�	�	�	�
�
�
�
�0�0�0�0�0�0�0�0�0�0�*�*�*�*�*�*��,�+�+�+�+�+�+��3���C� 0�0�1��1�1�1�1��7�:�U�3���C�0@�+@�%A�B�B�B��(�(�(�(�(�(�(�&F�F�F�F���"7�"7���"7�"7�"7r

?>