Skip to content

Commit 438485c

Browse files
committed
Only use the system python when building on Windows
1 parent cac7f7a commit 438485c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

rake-tasks/buck.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ def self.download
1818

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

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

3839
ant.get('src' => url, 'dest' => out, 'verbose' => true)
3940
File.chmod(0755, out)
40-
sh "python \"#{out}\" kill"
41-
["python", out]
41+
cmd = (windows?) ? ["python", out] : [out]
42+
sh cmd.join(" ") + " kill", :verbose => true
43+
cmd
4244
)
4345
end
4446

0 commit comments

Comments
 (0)