[metadata]
name = setuptools
-version = 67.3.0
+version = 67.3.1
author = Python Packaging Authority
author_email = distutils-sig@python.org
description = Easily download, build, install, upgrade, and uninstall Python packages
# 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