From 791119d4af1066b20fa2b5bf8fc82d04d843d51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 5 Nov 2020 15:53:21 +0100 Subject: build: rewrite tools/ scripts to deno (#8247) This commit rewrites scripts in "tools/" directory to use Deno instead of Python. In return it allows to remove huge number of Python packages in "third_party/". --- test_util/src/lib.rs | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'test_util/src') diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 366f8b6ba..97a2ed334 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -776,26 +776,6 @@ pub fn deno_cmd() -> Command { c } -pub fn run_python_script(script: &str) { - let deno_dir = new_deno_dir(); - let output = Command::new("python") - .env("DENO_DIR", deno_dir.path()) - .current_dir(root_path()) - .arg(script) - .arg(format!("--build-dir={}", target_dir().display())) - .arg(format!("--executable={}", deno_exe_path().display())) - .output() - .expect("failed to spawn script"); - if !output.status.success() { - let stdout = String::from_utf8(output.stdout).unwrap(); - let stderr = String::from_utf8(output.stderr).unwrap(); - panic!( - "{} executed with failing error code\n{}{}", - script, stdout, stderr - ); - } -} - pub fn run_powershell_script_file( script_file_path: &str, args: Vec<&str>, -- cgit v1.2.3