[Distutils] Plans for binary wheels, and PyPi and OS-X
Ronald Oussoren
ronaldoussoren at mac.com
Thu Oct 31 18:15:36 CET 2013
On 31 Oct, 2013, at 17:49, Daniel Holth <dholth at gmail.com> wrote:
> On Thu, Oct 31, 2013 at 10:26 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>> On 31 October 2013 23:38, Ronald Oussoren <ronaldoussoren at mac.com> wrote:
>>>
>>> On 21 Oct, 2013, at 20:52, Donald Stufft <donald at stufft.io> wrote:
>>>
>>>>
>>>> On Oct 21, 2013, at 1:02 PM, Chris Barker <chris.barker at noaa.gov> wrote:
>>>>
>>>>> On Fri, Oct 18, 2013 at 6:22 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>>>>>>> -- it would be very useful if folks could easily
>>>>>>> get binary wheels for OS-X
>>>>>>
>>>>>> We do plan to support it, but the pip devs uncovered a hole in the current
>>>>>> wheel spec that means it generates the same filename on *nix systems for
>>>>>> wheels that need to have different names for the download side of things to
>>>>>> work properly
>>>>>
>>>>> THanks -- but really? don't OS-X wheels get:
>>>>>
>>>>> macosx_10_6_intel
>>>>>
>>>>> or some such tacked on? Where does that go wrong?
>>>>
>>>> Homebrew, Mac Ports, Fink. That would work OK if nobody ever installed things
>>>> that the system didn't provide.
>>>
>>> I don't understand this, what would break? Binary wheels that reference shared libraries that aren't included in the wheel (or a default system install) won't work, but that's also true on Windows.
>>
>> The main difference I see is that on Windows, the ABI for the
>> *CPython* shared library is significantly less likely to vary across
>> machines.
>>
>> By contrast, it's relatively easy to change the ABI on *nix systems,
>> as it depends on what you pass as configure options.
>
> On OS X I would hope you are uploading only wheels built with
> python.org-Python but maybe you aren't, everyone has their
> preferences.
And that shouldn't be a problem, the various builds of Python on OSX should be compatible if the have the same platform tag in the wheel filename. Well, barring idiocy like installing a completely different libc, that might cause problems because (at least for 2.7) some libc types leak into the CPython ABI.
But anyway, I'd love to use binary wheels in the future to distribute prebuilt binaries for some of my projects and that's why I reacted on a message that mentioned that binary installs aren't supported yet. If I don't understand what the issue is I can't try to help finding I solution :-)
Is it "just" a matter of researching if the various build options on OSX really lead to binaries with the same ABI, or is more work needed?
Ronald
>
>> Will a C extension built with Homebrew Python work with the Python Mac
>> OS X installer from python.org? Probably, but given how painful ABI
>> mismatches with shared libraries can be to debug, "probably" doesn't
>> cut it until someone has the chance to thoroughly review the potential
>> for problems.
More information about the Distutils-SIG
mailing list