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.

This issue is present in 2.7 and onwards.  I'm attaching two possible fixes for 
the problem, both created against 2.7.  The issue is that the symlink in 
detected, but _read_output() returns None, which then fails when the output is 
examined (if 'str' in None...).  The first patch does a simple non-empty check. 
 The alternate version makes _read_output() return an empty string instead of 
None.

----------
components: Distutils
files: fix-osx-llvm-detection-with-ccache.patch
keywords: patch
messages: 216856
nosy: dstufft, eric.araujo, jszakmeister
priority: normal
severity: normal
status: open
title: Fix compiler detection when brew's ccache is installed on Mac OS X
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: 
http://bugs.python.org/file34972/fix-osx-llvm-detection-with-ccache.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21311>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to