JdRddlZddlmZeeejfZdZdededefdZdS)N)Unioncptj|}tj|ddS)z1Ensure that the parent directory of `path` existsT)exist_okN)ospathdirnamemakedirs)rrs C/opt/alt/python311/lib/python3.11/site-packages/setuptools/_path.pyensure_directoryr s0good##GK$''''''p1p2returnctj|tj|kS)aDiffers 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 )rrnormpath)r rs r same_pathr s/ 7  B  27#3#3B#7#7 77r ) rtypingrstrPathLike_Pathr boolrr r rss  c2;((( 8%8U8t888888r