aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
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.