From 6577f3dd58936f62e92e0fded1d02f94a909c38e Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Sun, 3 May 2020 09:05:48 -0400 Subject: [PATCH] Use python3 as default executable for x.py It seems that most distributions do not symlink python3 to python by default, as was expected when adding this code. We still support python 2.7, but the default is python 3, so reflect that here as well. --- config.toml.example | 2 +- x.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.toml.example b/config.toml.example index 9121d1e179926..f3d744fc1eec0 100644 --- a/config.toml.example +++ b/config.toml.example @@ -171,7 +171,7 @@ # rustdoc tests, the lldb python interpreter, and some dist bits and pieces. # # Defaults to the Python interpreter used to execute x.py. -#python = "python" +#python = "python3" # Force Cargo to check that Cargo.lock describes the precise dependency # set that all the Cargo.toml files create, instead of updating it. diff --git a/x.py b/x.py index 7973730ef177c..6186ebb5d48a5 100755 --- a/x.py +++ b/x.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # This file is only a "symlink" to bootstrap.py, all logic should go there.