about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2019-11-21 13:57:40 +0100
committerMark Rousskov <mark.simulacrum@gmail.com>2020-04-10 09:09:58 -0400
commit38eb369fa4d06e55869a8fae62796a7b0085a5bd (patch)
treea2f010105a6087ba68ff8ca3bf9371633463739d /src/bootstrap
parent42abbd8878d3b67238f3611b0587c704ba94f39c (diff)
downloadrust-38eb369fa4d06e55869a8fae62796a7b0085a5bd.tar.gz
rust-38eb369fa4d06e55869a8fae62796a7b0085a5bd.zip
Enforce Python 3 as much as possible
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/job.rs7
-rw-r--r--src/bootstrap/sanity.rs2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/bootstrap/job.rs b/src/bootstrap/job.rs
index efeb86540b7..2fe9b06e426 100644
--- a/src/bootstrap/job.rs
+++ b/src/bootstrap/job.rs
@@ -103,7 +103,12 @@ pub unsafe fn setup(build: &mut Build) {
     };
 
     let parent = OpenProcess(PROCESS_DUP_HANDLE, FALSE, pid.parse().unwrap());
-    assert!(!parent.is_null(), "{}", io::Error::last_os_error());
+    assert!(
+        !parent.is_null(),
+        "PID `{}` doesn't seem to exist: {}",
+        pid,
+        io::Error::last_os_error()
+    );
     let mut parent_handle = ptr::null_mut();
     let r = DuplicateHandle(
         GetCurrentProcess(),
diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs
index 530e74da8ca..1760d655b3b 100644
--- a/src/bootstrap/sanity.rs
+++ b/src/bootstrap/sanity.rs
@@ -132,8 +132,6 @@ pub fn check(build: &mut Build) {
         .python
         .take()
         .map(|p| cmd_finder.must_have(p))
-        .or_else(|| cmd_finder.maybe_have("python2.7"))
-        .or_else(|| cmd_finder.maybe_have("python2"))
         .or_else(|| env::var_os("BOOTSTRAP_PYTHON").map(PathBuf::from)) // set by bootstrap.py
         .or_else(|| Some(cmd_finder.must_have("python")));