aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
authorTim D. Smith2014-07-03 10:53:42 -0700
committerJack Nagel2014-07-04 22:17:48 -0500
commite6b78fefbd9e0a71e9e8d9cac70a6449a6a65281 (patch)
tree33307e6dde5d5ce5120756c7cde310135bd5ec7d /Library/Formula/python3.rb
parent200c7081e953c2bf42583e39d89c99aa2b550980 (diff)
downloadhomebrew-e6b78fefbd9e0a71e9e8d9cac70a6449a6a65281.tar.bz2
python3: don't install bottles on Xcode-only systems
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/python3.rb')
-rw-r--r--Library/Formula/python3.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index 96162e3b0..f30972893 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -55,6 +55,12 @@ class Python3 < Formula
EOS
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
# Unset these so that installing pip and setuptools puts them where we want
# and not into some other Python the user has installed.