[Distutils] Platform tags for OS X binary wheels

Robert McGibbon rmcgibbo at gmail.com
Fri Nov 6 14:20:03 EST 2015


For OS X, the pip get_platform function eventually calls into here:
https://github.com/python/cpython/blob/master/Lib/_osx_support.py#L429-L439,
and I think the comment kind of explains the bug.

-Robert



On Fri, Nov 6, 2015 at 11:10 AM, Daniel Holth <dholth at gmail.com> wrote:

> I see what you mean. Sounds like a bug to me.
>
> On Fri, Nov 6, 2015 at 2:07 PM Robert McGibbon <rmcgibbo at gmail.com> wrote:
>
>> I don't think it's the sorting, per se. All of the get_supported() tags
>> are 10.5 or earlier. Here's the output:
>> https://gist.github.com/rmcgibbo/1d0f5d166ca48253b5a9
>>
>>
>> On Fri, Nov 6, 2015 at 11:00 AM, Daniel Holth <dholth at gmail.com> wrote:
>>
>>> It should already be sorted. Try python -c "import pprint,
>>> pip.pep425tags; pprint.pprint(pip.pep425tags.get_supported())"
>>>
>>> Do none of the tags for the available numpy wheels appear in that list?
>>>
>>> On Fri, Nov 6, 2015 at 1:48 PM Robert McGibbon <rmcgibbo at gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I just tried to run `pip install numpy` on my OS X 10.10.3 box, and it
>>>> proceeds to download and compile the tarball from PyPI from source (very
>>>> slow). I see, however, that pre-compiled OS X wheel files are available on
>>>> PyPI for OS X 10.6 and later.
>>>>
>>>> Checking the code, it looks like pip is picking up the platform tag
>>>> through `distutils.util.get_platform()`, which returns 'macosx-10.5-x86_64'
>>>> on this machine. At root, I think this comes from
>>>> the MACOSX_DEPLOYMENT_TARGET=10.5 entry in the Makefile at
>>>> `python3.5/config-3.5m/Makefile`. I know that this value is used by
>>>> distutils compiling python extension modules -- presumably so that they can
>>>> be distributed to any target machine with OS X >=10.5 -- so that's good.
>>>> But is this the right thing for pip to be using when checking whether a
>>>> binary wheel is compatible? I see it mentioned
>>>> <https://www.python.org/dev/peps/pep-0425/#id13> in PEP 425, so
>>>> perhaps this was already hashed out on the list.
>>>>
>>>> Best,
>>>> Robert
>>>> _______________________________________________
>>>> Distutils-SIG maillist  -  Distutils-SIG at python.org
>>>> https://mail.python.org/mailman/listinfo/distutils-sig
>>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20151106/fa0915a6/attachment.html>


More information about the Distutils-SIG mailing list