From 1ffd40821a9f39a48f20dfcb672468d10796b50b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 19 Aug 2013 13:54:07 -0500 Subject: [PATCH] which in requirements always uses ORIGINAL_PATHS now Fixes Homebrew/homebrew#22002. --- Library/Homebrew/requirements/python_dependency.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb index 6a18883df8..6c613a595a 100644 --- a/Library/Homebrew/requirements/python_dependency.rb +++ b/Library/Homebrew/requirements/python_dependency.rb @@ -120,9 +120,7 @@ class PythonInstalled < Requirement # Note, we don't support homebrew/versions/pythonXX.rb, though. Formula.factory(@name).opt_prefix/"bin/python#{@min_version.major}" else - # Using the ORIGINAL_PATHS here because in superenv, the user - # installed external Python is not visible otherwise. - which(@name, ORIGINAL_PATHS.join(File::PATH_SEPARATOR)) + which(@name) end end end