� ,�Re���R�ddlZddlmZeeejfZd�Zdededefd�ZdS)�N)�Unionc�p�tj�|��}tj|d���dS)z1Ensure that the parent directory of `path` existsT)�exist_okN)�os�path�dirname�makedirs)rrs ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/_path.py�ensure_directoryr s0���g�o�o�d�#�#�G��K��$�'�'�'�'�'�'��p1�p2�returnc��tj�|��tj�|��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 )rr�normpath)r rs r � same_pathr s/�� �7� � �B� � �2�7�#3�#3�B�#7�#7� 7�7r ) r�typingr�str�PathLike�_Pathr �boolr�r r �rss�� � � � ������� �c�2�;����(�(�(� 8�%�8�U�8�t�8�8�8�8�8�8r