mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
vpython(3) no longer needs to bootstrap python.
The bundled python interpreter is used instead. Bug: 1318617 Change-Id: I86c359ad765ecf494a11d199f2e01a711c86d4c2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3807202 Reviewed-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Brian Ryner <bryner@google.com>
This commit is contained in:
8
vpython3
8
vpython3
@@ -39,16 +39,8 @@ base_dir=$(dirname "$0")
|
||||
source "$base_dir/cipd_bin_setup.sh"
|
||||
cipd_bin_setup &> /dev/null
|
||||
|
||||
# If Python bootstrapping is not disabled, make sure Python has been
|
||||
# bootstrapped and add it to the front of PATH.
|
||||
if [[ $(uname -s) = MINGW* || $(uname -s) = CYGWIN* ]]; then
|
||||
cmd.exe //c $0.bat "$@"
|
||||
elif [[ $DEPOT_TOOLS_BOOTSTRAP_PYTHON3 != 0 ]]; then
|
||||
if [[ ! -e "$base_dir/python3_bin_reldir.txt" ]]; then
|
||||
source "$base_dir/bootstrap_python3"
|
||||
bootstrap_python3
|
||||
fi
|
||||
exec "$base_dir/.cipd_bin/vpython3" "$@"
|
||||
else
|
||||
exec "$base_dir/.cipd_bin/vpython3" "$@"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user