Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
test.rb: Add python to PATH in test env
Browse files Browse the repository at this point in the history
Python is now a regular dependency, looking
for it in the requirements does not work anymore.

Closes #593.

Signed-off-by: Michka Popoff <michkapopoff@gmail.com>
  • Loading branch information
iMichka committed Feb 8, 2018
1 parent 279e66d commit 8ccb999
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Library/Homebrew/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
else
ENV.setup_build_environment(formula)
# Add the python executable to the PATH.
req = formula.recursive_requirements.grep(PythonRequirement).first
req&.modify_build_environment
if formula.deps.map(&:name).include? "python"
ENV.append_path "PATH", "#{HOMEBREW_PREFIX}/opt/python/libexec/bin"
end
end

trap("INT", old_trap)
Expand Down

0 comments on commit 8ccb999

Please sign in to comment.