env block is not inherited

This commit is contained in:
Tim D. Smith 2015-09-10 13:25:06 -07:00
parent 5997812ed2
commit c7d82a3881

View File

@ -24,10 +24,8 @@ class PythonRequirement < Requirement
ENV.prepend_path "PATH", Formula["python"].opt_bin ENV.prepend_path "PATH", Formula["python"].opt_bin
end end
if python_binary == "python"
ENV["PYTHONPATH"] = "#{HOMEBREW_PREFIX}/lib/python#{short_version}/site-packages" ENV["PYTHONPATH"] = "#{HOMEBREW_PREFIX}/lib/python#{short_version}/site-packages"
end end
end
def python_short_version def python_short_version
@short_version ||= Language::Python.major_minor_version which_python @short_version ||= Language::Python.major_minor_version which_python