From f259e497c4b12e6c0969c7d46f49a924d1615489 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Thu, 24 Dec 2020 03:48:17 -0500 Subject: [PATCH] Uninstall old python first --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f2fa58f34..d5f2c2938 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -121,9 +121,11 @@ build:windows: GIT_DEPTH: 5 before_script: - ./docker/install_choco.ps1 + - choco uninstall python3 - choco install -y --x64 python3 7zip checksum - python --version # | findstr /B "Python 3\.7\." # dont upgrade python on every run. just make sure we're on the right Python - pip --version # | findstr /E '\(python 3\.7\)' + - python -c "import sys;print(f'{str(64 if sys.maxsize > 2**32 else 32)} bit python\n{sys.platform}')" - pip install virtualenv pywin32 - virtualenv venv - venv/Scripts/activate.ps1