<div dir="ltr">If you would like to fix the problem, figure out how to get the real OSX version into pip.pep425tags.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 6, 2015 at 2:20 PM Robert McGibbon <<a href="mailto:rmcgibbo@gmail.com">rmcgibbo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For OS X, the pip get_platform function eventually calls into here: <a href="https://github.com/python/cpython/blob/master/Lib/_osx_support.py#L429-L439" target="_blank">https://github.com/python/cpython/blob/master/Lib/_osx_support.py#L429-L439</a>, and I think the comment kind of explains the bug.</div><div dir="ltr"><div><br></div><div>-Robert<br><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 6, 2015 at 11:10 AM, Daniel Holth <span dir="ltr"><<a href="mailto:dholth@gmail.com" target="_blank">dholth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I see what you mean. Sounds like a bug to me.<div><div><div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 6, 2015 at 2:07 PM Robert McGibbon <<a href="mailto:rmcgibbo@gmail.com" target="_blank">rmcgibbo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I don't think it's the sorting, per se. All of the <span style="font-size:12.8px;line-height:19.2px">get_supported() tags are 10.5 or earlier. Here's the output: <a href="https://gist.github.com/rmcgibbo/1d0f5d166ca48253b5a9" target="_blank">https://gist.github.com/rmcgibbo/1d0f5d166ca48253b5a9</a></span><br><div><span style="font-size:12.8px;line-height:19.2px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 6, 2015 at 11:00 AM, Daniel Holth <span dir="ltr"><<a href="mailto:dholth@gmail.com" target="_blank">dholth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It should already be sorted. <span style="line-height:1.5">Try </span><span style="line-height:1.5">python -c "import pprint, pip.pep425tags; pprint.pprint(pip.pep425tags.get_supported())"</span><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">Do none of the tags for the available numpy wheels appear in that list?</span></div></div><br><div class="gmail_quote"><div><div><div dir="ltr">On Fri, Nov 6, 2015 at 1:48 PM Robert McGibbon <<a href="mailto:rmcgibbo@gmail.com" target="_blank">rmcgibbo@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><span style="font-size:12.8px">Hi,</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">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.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">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`. </span><span style="font-size:12.8px">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 <a href="https://www.python.org/dev/peps/pep-0425/#id13" target="_blank">mentioned</a> in PEP 425, so perhaps this was already hashed out on the list.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Best,</span></div><div><span style="font-size:12.8px">Robert</span></div></div></div></div>
_______________________________________________<br>
Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org" target="_blank">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
</blockquote></div>
</blockquote></div><br></div>
</blockquote></div></div></div></div></div>
</blockquote></div><br></div>
</blockquote></div>