|
@@ -18,7 +18,7 @@ import posixpath
|
|
|
import collections
|
|
|
|
|
|
from . import _meta
|
|
|
-from .compat import py39
|
|
|
+from .compat import py39, py311
|
|
|
from ._collections import FreezableDefaultDict, Pair
|
|
|
from ._compat import (
|
|
|
NullFinder,
|
|
@@ -575,9 +575,8 @@ class Distribution(DeprecatedNonAbstract):
|
|
|
return
|
|
|
|
|
|
paths = (
|
|
|
- (subdir / name)
|
|
|
- .resolve()
|
|
|
- .relative_to(self.locate_file('').resolve())
|
|
|
+ py311.relative_fix((subdir / name).resolve())
|
|
|
+ .relative_to(self.locate_file('').resolve(), walk_up=True)
|
|
|
.as_posix()
|
|
|
for name in text.splitlines()
|
|
|
)
|