From 48f69e06dcc47fc6ce1a5165b70a9cb0ea828a7c Mon Sep 17 00:00:00 2001 From: Chase Geigle Date: Tue, 1 May 2018 12:32:58 -0500 Subject: [PATCH] [ci]: Use `python -m pip` instead of `pip` on Appveyor. --- .appveyor.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 92bbdec..04b53a2 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -37,8 +37,7 @@ install: - bash -lc "wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-cmake-3.8.2-2-any.pkg.tar.xz" - bash -lc "pacman --noconfirm -U mingw-w64-x86_64-cmake-3.8.2-2-any.pkg.tar.xz" - python --version - - pip install --disable-pip-version-check --user --upgrade pip - - pip install wheel + - python -m pip install --upgrade pip wheel # Python 3.3 and 3.4 on Windows don't seem to come with a libpython33.a # or libpython34.a, so we need to generate one if it doesn't exist - bash -lc "if [ ! -f $PYTHON_PATH/libs/libpython$PYTHON_VERSION.a ]; then cd $PYTHON_PATH/libs && gendef /c/windows/system32/python$PYTHON_VERSION.dll && dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libpython$PYTHON_VERSION.a --input-def python$PYTHON_VERSION.def; fi" @@ -46,7 +45,7 @@ before_build: - cd %APPVEYOR_BUILD_FOLDER% - git submodule update --init --recursive build_script: - - bash -lc "export PATH=/mingw64/bin:$PATH && cd $APPVEYOR_BUILD_FOLDER && pip wheel -w dist --verbose ./" + - bash -lc "export PATH=/mingw64/bin:$PATH && cd $APPVEYOR_BUILD_FOLDER && python -m pip wheel -w dist --verbose ./" deploy: description: 'metapy $(APPVEYOR_REPO_TAG_NAME)' provider: GitHub