[Distutils] Using Wheel with zipimport

Donald Stufft donald at stufft.io
Wed Jan 29 14:44:57 CET 2014


On Jan 29, 2014, at 8:43 AM, Daniel Holth <dholth at gmail.com> wrote:

> On Wed, Jan 29, 2014 at 8:31 AM, Donald Stufft <donald at stufft.io> wrote:
>> 
>> On Jan 29, 2014, at 8:10 AM, Paul Moore <p.f.moore at gmail.com> wrote:
>> 
>>> On 29 January 2014 12:58, Nick Coghlan <ncoghlan at gmail.com> wrote:
>>>> You can campaign to deprecate that feature *if* we ever want to make a
>>>> change to the wheel format that is incompatible with it.
>>> 
>>> Note that virtualenv uses the ability to run wheels from sys.path. I
>>> don't believe that virtualenv should be a "special exception" here,
>>> nor do I want it to rely on accidents of the implementation.
>>> 
>>> So from my POV, pypa is already shipping code that relies on this
>>> behaviour being by design.
>>> 
>>> Paul
>> 
>> 
>> Here's Paul explicitly mentioning that Wheels being used with zip import is
>> an incidental benefit and not a core feature.
>> 
>> https://mail.python.org/pipermail/distutils-sig/2013-March/020379.html
> 
> I designed it very intentionally to be compatible with zip import.
> Otherwise wheels would probably not even be zip files (like pypm
> packages which are tar) and would achieve greater compression.
> 
> It may be useful to understand that wheel has *political features* or
> if you prefer *setting the defaults based on what we have learned from
> eggs*. I don't recommend that they be zip-imported generally but if
> you are a consenting adult who understands the caveats you may do so.

Then why did you tell someone on this very list a few hours ago that Wheels
were not really designed to be zip imported.

-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20140129/f2856e9b/attachment.sig>


More information about the Distutils-SIG mailing list