From 27353388157adda3d22000fcf146fe599f4f9a6f Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 26 Dec 2016 19:55:18 +0100 Subject: [PATCH] update windows dev script --- dev.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev.ps1 b/dev.ps1 index 7404a2bae..e6b9f6105 100644 --- a/dev.ps1 +++ b/dev.ps1 @@ -1,7 +1,12 @@ $ErrorActionPreference = "Stop" $VENV = ".\venv" -python3 -m venv $VENV --copies +$pyver = python --version +if($pyver -notmatch "3\.[5-9]") { + Write-Warning "Unexpected Python version, expected Python 3.5 or above: $pyver" +} + +python -m venv $VENV --copies & $VENV\Scripts\activate.ps1 python -m pip install --disable-pip-version-check -U pip