[issue21311] Fix compiler detection when brew's ccache is installed on Mac OS X

2014-04-19 Thread John Szakmeister
John Szakmeister added the comment: Thank you Ned! The issue is that you can create symlinks to ccache to and put them on your path. Distros do this for you now, but most create symlinks for a bunch of compilers... including ones that may not be installed. So the presence of the name ('gcc'

[issue21311] Fix compiler detection when brew's ccache is installed on Mac OS X

2014-04-19 Thread Ned Deily
Ned Deily added the comment: Thanks for the report and the patches. I am not sure exactly what problem using ccache is causing but it is clear that, if for whatever reason the call to _read_output fails and returns None, the 'llvm-gcc' test will fail so that test should be fixed as suggested

[issue21311] Fix compiler detection when brew's ccache is installed on Mac OS X

2014-04-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset e3217efa6edd by Ned Deily in branch '2.7': Issue #21311: Avoid exception in _osx_support with non-standard compiler http://hg.python.org/cpython/rev/e3217efa6edd New changeset 3d1578c705c9 by Ned Deily in branch '3.4': Issue #21311: Avoid exception

[issue21311] Fix compiler detection when brew's ccache is installed on Mac OS X

2014-04-19 Thread Ned Deily
Changes by Ned Deily : -- assignee: -> ned.deily nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue21311] Fix compiler detection when brew's ccache is installed on Mac OS X

2014-04-19 Thread John Szakmeister
John Szakmeister added the comment: Here's the alternate fix. -- Added file: http://bugs.python.org/file34973/alt-fix-osx-llvm-detection-with-ccache.patch ___ Python tracker ___

[issue21311] Fix compiler detection when brew's ccache is installed on Mac OS X

2014-04-19 Thread John Szakmeister
New submission from John Szakmeister: It's pretty typical for ccache packages to install symlinks for compilers that may not be present on the system, such as Homebrew's ccache package. Unfortunately, the _osx_support.py file is mislead by the presence of the symlink and ends up backtracing.