You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discovered in pypa/setuptools#1196, it seems that the egg2dist function both accepts a parameter distinfo_path but also accesses self.distinfo_dir. When egg2dist is invoked from an external caller like setuptools, and distinfo_dir isn't set, and the license text functionality is triggered, the function will crash with a TypeError.
egg2dist should either only use distinfo_path passed as a parameter or use the instance attribute. Even better, if possible, egg2dist should be refactored such that it doesn't depend on instance attributes at all (and thus can be a classmethod).
The text was updated successfully, but these errors were encountered:
Discovered in pypa/setuptools#1196, it seems that the egg2dist function both accepts a parameter distinfo_path but also accesses self.distinfo_dir. When egg2dist is invoked from an external caller like setuptools, and distinfo_dir isn't set, and the license text functionality is triggered, the function will crash with a TypeError.
egg2dist should either only use distinfo_path passed as a parameter or use the instance attribute. Even better, if possible, egg2dist should be refactored such that it doesn't depend on instance attributes at all (and thus can be a classmethod).
The text was updated successfully, but these errors were encountered: