aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements
diff options
context:
space:
mode:
authorMike McQuaid2014-03-14 18:20:53 +0000
committerMike McQuaid2014-03-14 18:21:29 +0000
commitf303f803659b9c5527c5f90cf550b995a7341522 (patch)
tree62992ee8aa8a73878166a2a8055c67b1b0336085 /Library/Homebrew/requirements
parent06380864e2ce4e3b259a3a29ce38fc28b2009566 (diff)
downloadhomebrew-f303f803659b9c5527c5f90cf550b995a7341522.tar.bz2
python_dependency: move bottle check into method.
Diffstat (limited to 'Library/Homebrew/requirements')
-rw-r--r--Library/Homebrew/requirements/python_dependency.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb
index 4bdc9f614..3c6512661 100644
--- a/Library/Homebrew/requirements/python_dependency.rb
+++ b/Library/Homebrew/requirements/python_dependency.rb
@@ -7,7 +7,7 @@ class PythonDependency < Requirement
satisfy :build_env => false do
# Always build bottles against Homebrew Python as they still work
# against a 2.7 system Python.
- next if ARGV.build_bottle?
+ next if build_bottle?
python = which_python
next unless python
version = python_short_version
@@ -27,6 +27,10 @@ class PythonDependency < Requirement
end
end
+ def build_bottle?
+ ARGV.build_bottle?
+ end
+
def python_short_version
@short_version ||= Language::Python.major_minor_version which_python
end