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.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index b68a49627..063c52e3d 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -67,6 +67,10 @@ class Python3 < Formula
ENV['PYTHONHOME'] = nil
ENV['PYTHONPATH'] = nil
+ # Otherwise the formula may attempt to use the python3 shim
+ # even though python3 isn't installed yet
+ ENV['PYTHON'] = 'python'
+
args = %W[
--prefix=#{prefix}
--enable-ipv6