python_dependency: only set PYTHONPATH for system.
This commit is contained in:
parent
b754ad0d0b
commit
f42f4e45c1
@ -12,11 +12,11 @@ class PythonDependency < Requirement
|
|||||||
end
|
end
|
||||||
|
|
||||||
def modify_build_environment
|
def modify_build_environment
|
||||||
|
if system_python?
|
||||||
if python_binary == 'python'
|
if python_binary == 'python'
|
||||||
ENV['PYTHONPATH'] = "#{HOMEBREW_PREFIX}/lib/python2.7/site-packages"
|
ENV['PYTHONPATH'] = "#{HOMEBREW_PREFIX}/lib/python2.7/site-packages"
|
||||||
end
|
end
|
||||||
|
elsif which_python
|
||||||
if !system_python? && which_python
|
|
||||||
ENV.prepend_path 'PATH', which_python.dirname
|
ENV.prepend_path 'PATH', which_python.dirname
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user