I think that is a setuptools issue in 5.4. It seems the issue has been
introduced in [10cc90d9b828] and [2d13c675f84c] of setuptools.
After setuptools 5.4, the zipinfo property of ZipProvider class reads
egg file each time. Before 5.3, __init__ method of ZipProvider class
reads egg file and the result will be stored in its "zipinfo" instance
variable.
The following patch would fix it.
--- pkg_resources.py.orig 2014-08-09 22:06:34.877375000 +0900
+++ pkg_resources.py 2014-08-09 22:06:37.533625000 +0900
@@ -1636,7 +1636,11 @@
@property
def zipinfo(self):
- return self._zip_manifests.load(self.loader.archive)
+ try:
+ return self._zipinfo
+ except AttributeError:
+ self._zipinfo = self._zip_manifests.load(self.loader.archive)
+ return self._zipinfo
def get_resource_filename(self, manager, resource_name):
if not self.egg_name:
--
Jun Omae <
jun...@gmail.com> (大前 潤)