python: don't install bottles on Xcode-only systems

Closes Homebrew/homebrew#30633.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Tim D. Smith 2014-07-02 23:46:05 -07:00 committed by Jack Nagel
parent 803d5f5fd0
commit 50a4ab28d6

View file

@ -56,6 +56,12 @@ class Python < Formula
HOMEBREW_PREFIX/"lib/python2.7/site-packages"
end
# setuptools remembers the build flags python is built with and uses them to
# build packages later. Xcode-only systems need different flags.
def pour_bottle?
MacOS::CLT.installed?
end
def install
if build.with? "poll"
opoo "The given option --with-poll enables a somewhat broken poll() on OS X (http://bugs.python.org/issue5154)."