depot_tools: Bootstrap Python 3 on Linux/Mac

This will make it possible for developers to execute depot_tools
scripts using Python 3 in a known environment.

Bug: 1002153
Change-Id: I5ff492a49d227c1b5876f49adba020f51a575bdd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1762664
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
This commit is contained in:
Edward Lemur
2019-09-10 21:34:48 +00:00
committed by Commit Bot
parent 0ac171b203
commit dbca865e55
21 changed files with 173 additions and 112 deletions

View File

@@ -0,0 +1,27 @@
# CIPD manifest for bootstrapping tools.
#
# We must install anything that we want included on PATH to a different
# subdirectory than Git, as Git's msys bash strips its root directory
# from PATH, hence the subdirs.
#
# If any paths or package layouts change, updates will be required in
# "win_tools.bat", "bootstrap.py" and "../bootstrap_python3" templates.
#
# "win_tools.bat" has a hard requirement that the Python packages contain the
# strings "cpython/" for Python 2 and "cpython3/" for Python 3, and ends with
# the CIPD tag "version:VERSION". It uses this to extract VERSION.
#
# "bootstrap_python3" has a hard requirement that the Python package contains
# the string "cpython3/" and ends with the CIPD tag
# "version:VERSION". It uses this to extract VERSION.
$VerifiedPlatform windows-386 windows-amd64 linux-amd64 mac-amd64
@Subdir python
infra/python/cpython/${platform} version:2.7.15.chromium14
@Subdir python3
infra/python/cpython3/${os}-${arch=amd64} version:3.8.0b1.chromium.1
@Subdir git
infra/git/${os}-${arch} version:2.21.0.chromium16