python_dependency: no brewed python for bottles
This commit is contained in:
parent
ab4f9e57ae
commit
8dcadc54d2
@ -5,9 +5,6 @@ class PythonDependency < Requirement
|
||||
default_formula "python"
|
||||
|
||||
satisfy :build_env => false do
|
||||
# Always build bottles against Homebrew Python as they still work
|
||||
# against a 2.7 system Python.
|
||||
next if build_bottle?
|
||||
python = which_python
|
||||
next unless python
|
||||
version = python_short_version
|
||||
@ -27,10 +24,6 @@ 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user