appveyor: fix issue self-upgradig pip to v10 (#663)

Installing with --user will leave the old pip.exe script in the $PATH,
but running this will fail because pip 10 moved 'main' to internal
modules.

https://github.com/pypa/pip/issues/5240#issuecomment-382989420
This commit is contained in:
Cosimo Lupo 2018-04-20 18:31:51 +01:00 committed by Eugene Kliuchnikov
parent 6000396155
commit f94cd51b5c

View File

@ -31,7 +31,7 @@ environment:
install:
- IF "%BUILD_SYSTEM%"=="Python" (
SET "PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%" &&
pip install --disable-pip-version-check --user --upgrade pip &&
python -m pip install --upgrade pip &&
pip install --upgrade setuptools
)
- IF "%BUILD_SYSTEM%"=="make" (