aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/python_helper.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-09-14 11:49:54 +0100
committerMike McQuaid2013-09-14 12:21:49 +0100
commit0675ba29464fd9600f83eafff2df5c8e993d7533 (patch)
treed412c780d496cb33911760cfb4f4248c9eb5fc30 /Library/Homebrew/python_helper.rb
parent1935e4fcd6601bb413991f2524aaf4e46dbbff8b (diff)
downloadhomebrew-0675ba29464fd9600f83eafff2df5c8e993d7533.tar.bz2
Rename PythonInstalled to PythonDependency.
Make it more consistent with other requirements.
Diffstat (limited to 'Library/Homebrew/python_helper.rb')
-rw-r--r--Library/Homebrew/python_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/python_helper.rb b/Library/Homebrew/python_helper.rb
index bace441fc..d91bd7d2f 100644
--- a/Library/Homebrew/python_helper.rb
+++ b/Library/Homebrew/python_helper.rb
@@ -3,7 +3,7 @@
# This method has a dual nature. For one, it takes a &block and sets up
# the ENV such that a Python, as defined in the requirements, is the default.
-# If there are multiple `PythonInstalled` requirements, the block is evaluated
+# If there are multiple `PythonDependency` requirements, the block is evaluated
# once for each Python. This makes it possible to easily support 2.x and
# 3.x Python bindings without code duplication in formulae.
# If you need to special case stuff, set :allowed_major_versions.
@@ -24,8 +24,8 @@ def python_helper(options={:allowed_major_versions => [2, 3]}, &block)
end
end
- # Look for PythonInstalled requirements for this formula:
- python_reqs = requirements.select{ |r| r.kind_of?(PythonInstalled) }
+ # Look for PythonDependency requirements for this formula:
+ python_reqs = requirements.select{ |r| r.kind_of?(PythonDependency) }
if python_reqs.empty?
raise "If you use python in the formula, you have to add `depends_on :python` (or :python3)!"
end