From afec712a869c4f857781b05bd97b5d141848702b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 14 Mar 2014 18:20:53 +0000 Subject: python_dependency: move bottle check into method. --- Library/Homebrew/requirements/python_dependency.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3