From 8d5023e1caab1c8f190f16509fc097bb4d00249b Mon Sep 17 00:00:00 2001 From: Ulysses Souza Date: Thu, 23 Jan 2020 10:39:31 +0100 Subject: [PATCH] Enforce Python37 in the creation of virtualenv Signed-off-by: Ulysses Souza --- script/build/windows.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/build/windows.ps1 b/script/build/windows.ps1 index 4c7a8bed5..7ba5ebde2 100644 --- a/script/build/windows.ps1 +++ b/script/build/windows.ps1 @@ -6,7 +6,7 @@ # # http://git-scm.com/download/win # -# 2. Install Python 3.7.2: +# 2. Install Python 3.7.x: # # https://www.python.org/downloads/ # @@ -39,7 +39,7 @@ if (Test-Path venv) { Get-ChildItem -Recurse -Include *.pyc | foreach ($_) { Remove-Item $_.FullName } # Create virtualenv -virtualenv .\venv +virtualenv -p C:\Python37\python.exe .\venv # pip and pyinstaller generate lots of warnings, so we need to ignore them $ErrorActionPreference = "Continue"