aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/python.rb6
-rw-r--r--Library/Formula/python3.rb16
2 files changed, 4 insertions, 18 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index a5f5db2f3..5a9a0cdf6 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -2,9 +2,9 @@ require 'formula'
class TkCheck < Requirement
def message; <<-EOS.undent
- Tk.framework detected in /Library/Frameworks
- and that can make python builds to fail.
- https://github.com/mxcl/homebrew/issues/11602
+ Tk.framework was detected in /Library/Frameworks
+ This can cause Python builds to fail. See:
+ https://github.com/mxcl/homebrew/issues/11602
EOS
end
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index 3cf82a30a..28472b12f 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -1,25 +1,11 @@
require 'formula'
+require Formula.path("python") # For TkCheck requirement
# Python3 is the new language standard, not just a new revision.
# It's somewhat incompatible to Python 2.x, therefore, the executable
# "python" will always point to the 2.x version which you can get by
# `brew install python`.
-class TkCheck < Requirement
- def message; <<-EOS.undent
- Tk.framework detected in /Library/Frameworks
- and that can make python builds to fail.
- https://github.com/mxcl/homebrew/issues/11602
- EOS
- end
-
- def fatal?; false; end
-
- def satisfied?
- not File.exist? '/Library/Frameworks/Tk.framework'
- end
-end
-
class Distribute < Formula
url 'http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz'
md5 'b400b532e33f78551e6847c1f5965e56'