Merge pull request #2897 from MikeMcQuaid/python@2
python_requirement: add libexec/bin to PATH.
This commit is contained in:
		
						commit
						fb90154589
					
				@ -21,6 +21,7 @@ class PythonRequirement < Requirement
 | 
			
		||||
    # Homebrew Python should take precedence over older Pythons in the PATH
 | 
			
		||||
    elsif short_version != Version.create("2.7")
 | 
			
		||||
      ENV.prepend_path "PATH", Formula["python"].opt_bin
 | 
			
		||||
      ENV.prepend_path "PATH", Formula["python"].opt_libexec/"bin"
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    ENV["PYTHONPATH"] = "#{HOMEBREW_PREFIX}/lib/python#{short_version}/site-packages"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user