Skip to content

Commit

Permalink
Only use the system python when building on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
davehunt committed Nov 14, 2016
1 parent cac7f7a commit 438485c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions rake-tasks/buck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ def self.download

if cached_hash == out_hash
# Make sure we're running a pristine buck instance
sh "python \"#{out}\" kill"
return ["python", out]
cmd = (windows?) ? ["python", out] : [out]
sh cmd.join(" ") + " kill", :verbose => true
return cmd
end

url = "https://github.com/SeleniumHQ/buck/releases/download/buck-release-#{version}/buck.pex"
Expand All @@ -37,8 +38,9 @@ def self.download

ant.get('src' => url, 'dest' => out, 'verbose' => true)
File.chmod(0755, out)
sh "python \"#{out}\" kill"
["python", out]
cmd = (windows?) ? ["python", out] : [out]
sh cmd.join(" ") + " kill", :verbose => true
cmd
)
end

Expand Down

0 comments on commit 438485c

Please sign in to comment.