From fa8cb2fbbd76e628b506bc46470dff82ea9bdb5d Mon Sep 17 00:00:00 2001 From: Yuri Bochkarev Date: Sat, 9 Jun 2018 22:07:28 +0300 Subject: [PATCH] Use old pip upgrade command only for Python 2.6 in appveyor.yml --- appveyor.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 9b3a1d4..97ce6e7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,6 +16,8 @@ environment: # /E:ON and /V:ON options are not enabled in the batch script intepreter # See: http://stackoverflow.com/a/13751649/163740 CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd" + # This command works for most versions of Python in AppVeyor except of Python 2.6 + PIP_UPGRADE_CMD: "python -m pip install --disable-pip-version-check --user --upgrade pip" #PANDOC_URL: "https://github.com/jgm/pandoc/releases/download/1.17.1/pandoc-1.17.1-1-windows.msi" #PANDOC_MSI: "C:\\pandoc.msi" @@ -27,6 +29,8 @@ environment: - PYTHON: "C:\\Python26" PYTHON_VERSION: "2.6.x" # currently 2.6.6 PYTHON_ARCH: "32" + # For Python 2.6 we are using old version of pip upgrade command + PIP_UPGRADE_CMD: "pip install --disable-pip-version-check --user --upgrade pip" - PYTHON: "C:\\Python26-x64" PYTHON_VERSION: "2.6.x" # currently 2.6.6 @@ -83,7 +87,7 @@ install: # Upgrade to the latest version of pip to avoid it displaying warnings # about it being out of date. - - "python -m pip install --disable-pip-version-check --user --upgrade pip" + - "%PIP_UPGRADE_CMD%" # Install requirements - "%CMD_IN_ENV% pip install -r requirements.txt"