Skip to content
Snippets Groups Projects
Commit f42f4e45 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

python_dependency: only set PYTHONPATH for system.

parent b754ad0d
No related branches found
No related tags found
No related merge requests found
......@@ -12,11 +12,11 @@ class PythonDependency < Requirement
end
def modify_build_environment
if python_binary == 'python'
ENV['PYTHONPATH'] = "#{HOMEBREW_PREFIX}/lib/python2.7/site-packages"
end
if !system_python? && which_python
if system_python?
if python_binary == 'python'
ENV['PYTHONPATH'] = "#{HOMEBREW_PREFIX}/lib/python2.7/site-packages"
end
elsif which_python
ENV.prepend_path 'PATH', which_python.dirname
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment