On Mon, Aug 11, 2014 at 3:02 PM, Peter Suter <[email protected]> wrote:
> On 09.08.2014 15:23, Jun Omae wrote:
>>
>> 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:
>>
>
> Thank you for investigating! Have you sent the patch to setuptools
> developers?

I just posted a new issue with the patch at
https://bitbucket.org/pypa/setuptools/issue/240.

-- 
Jun Omae <[email protected]> (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to