From 315c7a12127999cc9b757cdf93aa7fa5f8eb772b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 14 Sep 2013 11:49:54 +0100 Subject: Rename PythonInstalled to PythonDependency. Make it more consistent with other requirements. --- Library/Homebrew/python_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Homebrew/python_helper.rb') 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 -- cgit v1.2.3