diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-02-14 07:52:17 +0000 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-02-14 07:52:17 +0000 |
| commit | c428a57352138d01c21064012091b9bde3017060 (patch) | |
| tree | 7bb147c330eb1705b0f418130eb39aa5295a734f /setuptools/command | |
| parent | bd37bfc622a6f2220c2e4e30b18f2cd2904b7da6 (diff) | |
| download | python-setuptools-git-c428a57352138d01c21064012091b9bde3017060.tar.gz | |
Fix error when integrating with pip
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/egg_info.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index afcde5a2..e40df9bb 100644 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -250,7 +250,8 @@ class egg_info(InfoCommon, Command): # 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 |
