ci: only install Python once in Windows setup script

Previously, the script would install the python package without a
version specifier, then attempt to install a specific version (3.9.0),
but this would fail because the first step installed a newer Python
version:

  A newer version of python (v3.10.4) is already installed.

  Use --allow-downgrade or --force to attempt to install older versions,
  or use side by side to allow multiple versions.

  Chocolatey installed 0/1 packages. 1 packages failed.

Remove the first unversioned step so we always get the requested version
of Python only.

BUG=None
TEST=kokoro CI

Change-Id: I95b224926ee9ebcaacdb7d6c2716381a46ec467c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3657850
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2022-05-20 10:59:51 -07:00 committed by Chromeos LUCI
parent 69daee101e
commit 5b0f6aaaae

View file

@ -26,8 +26,7 @@ cargo install bindgen
:: Install python. The default kokoro intalled version is 3.7 but linux tests
:: seem to run on 3.9+.
choco install -y python
choco install python --version=3.9.0
choco install -y python --version=3.9.0
:: Reload path for installed rust toolchain.
call RefreshEnv.cmd