Skip to content

Commit dc56040

Browse files
committed
Revert "Fix error when integrating with pip (#3823)"
This reverts commit 19cbbad, reversing changes made to bd37bfc.
1 parent 6e90cbd commit dc56040

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

setuptools/command/egg_info.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ def finalize_options(self):
255255
# to the version info
256256
#
257257
pd = self.distribution._patched_dist
258-
key = getattr(pd, "key", None) or getattr(pd, "name", None)
259-
if pd is not None and key == self.egg_name.lower():
258+
if pd is not None and pd.key == self.egg_name.lower():
260259
pd._version = self.egg_version
261260
pd._parsed_version = packaging.version.Version(self.egg_version)
262261
self.distribution._patched_dist = None

0 commit comments

Comments
 (0)