
    df                     T    d dl Z d dlmZ eee j                  f   Zd ZdededefdZy)    N)Unionc                 p    t         j                  j                  |       }t        j                  |d       y)z1Ensure that the parent directory of `path` existsT)exist_okN)ospathdirnamemakedirs)r   r   s     I/home/api-vastappli/venv/lib/python3.12/site-packages/setuptools/_path.pyensure_directoryr      s"    ggood#GKK$'    p1p2returnc                     t         j                  j                  |       t         j                  j                  |      k(  S )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
    )r   r   normpath)r   r   s     r
   	same_pathr      s-      77B277#3#3B#777r   )	r   typingr   strPathLike_Pathr   boolr    r   r
   <module>r      s=    	 c2;;(8% 8U 8t 8r   