[Distutils] What does it mean for Python to "bundle pip"?

Donald Stufft donald at stufft.io
Wed Aug 21 12:47:56 CEST 2013

On Aug 21, 2013, at 6:46 AM, Oscar Benjamin <oscar.j.benjamin at gmail.com> wrote:

> On 21 August 2013 11:39, Paul Moore <p.f.moore at gmail.com> wrote:
>> On 21 August 2013 11:29, Oscar Benjamin <oscar.j.benjamin at gmail.com> wrote:
>>> I may have misunderstood it but looking at this
>>> https://github.com/numpy/numpy/blob/master/tools/win32build/nsis_scripts/numpy-superinstaller.nsi.in#L147
>>> I think that the installer ships variants for each architecture and
>>> decides at install time which to place on the target system. If that's
>>> the case then would it be possible for a wheel to ship all variants so
>>> that a post-install script could sort it out (rename/delete) after the
>>> wheel is installed?
>> Wheel 1.0 does not have the ability to bundle multiple versions (and I don't
>> think tags are fine-grained enough to cover the differences numpy need,
>> which are at the "do you have the SSE instruction set?" level AIUI).
>> Multi-version wheels are a possible future extension, but I don't know if
>> anyone has thought about fine-grained tags.
> No, but the wheel could do like the current numpy installer and ship
>    _numpy.pyd.nosse
>    _numpy.pyd.sse1
>    _numpy.pyd.sse2
>    _numpy.pyd.sse3
> as platlib files and then a post-install script can check for SSE
> support, rename the appropriate file to _numpy.pyd and delete the
> other _numpy.pyd.* files.
>> This is precisely the sort of input that the numpy people could provide to
>> make sure that the wheel design covers their needs.
> I'm I right in guessing (since the question keeps being evaded :) )
> that a post-install script is not possible with pip+wheel+PyPI?.
> Oscar
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig

Metadata 2.0 includes the ability to have a post install script, but Wheel is not yet using Metadata 2.0 (and it's not yet finalized).

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/20130821/39131b38/attachment.sig>

More information about the Distutils-SIG mailing list