Skip to content

Commit

Permalink
Fix error when integrating with pip
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Feb 14, 2023
1 parent bd37bfc commit c428a57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setuptools/command/egg_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ def finalize_options(self):
# to the version info
#
pd = self.distribution._patched_dist
if pd is not None and pd.key == self.egg_name.lower():
key = getattr(pd, "key", None) or getattr(pd, "name", None)
if pd is not None and key == self.egg_name.lower():
pd._version = self.egg_version
pd._parsed_version = packaging.version.Version(self.egg_version)
self.distribution._patched_dist = None
Expand Down

0 comments on commit c428a57

Please sign in to comment.