We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f609d35 + 25c64a0 commit 7d28893Copy full SHA for 7d28893
news/10504.bugfix.rst
@@ -0,0 +1,2 @@
1
+Fix a crash when installing an editable requirement using the legacy resolver
2
+due to a mismatch in internal metadata representation interfaces.
src/pip/_internal/distributions/installed.py
@@ -11,8 +11,10 @@ class InstalledDistribution(AbstractDistribution):
11
"""
12
13
def get_metadata_distribution(self) -> BaseDistribution:
14
+ from pip._internal.metadata.pkg_resources import Distribution as _Dist
15
+
16
assert self.req.satisfied_by is not None, "not actually installed"
- return self.req.satisfied_by
17
+ return _Dist(self.req.satisfied_by)
18
19
def prepare_distribution_metadata(
20
self, finder: PackageFinder, build_isolation: bool
0 commit comments