Skip to content

Commit

Permalink
[ci]: Use python -m pip instead of pip on Appveyor.
Browse files Browse the repository at this point in the history
  • Loading branch information
skystrife committed May 1, 2018
1 parent 03f088b commit 48f69e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,15 @@ 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"
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
Expand Down

0 comments on commit 48f69e0

Please sign in to comment.