Skip to content

Commit 869b84d

Browse files
committed
TST: Unblock Appveyor build by patching subprocess
1 parent de51d40 commit 869b84d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.appveyor.yml

+6
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ install:
9595
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
9696
- pip install -q pytest "pytest-cov>=2.3.1" pytest-rerunfailures pytest-timeout
9797

98+
# Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
99+
# https://github.com/matplotlib/matplotlib/issues/9176
100+
- python -c "import sys; sys.exit((2,) > sys.version_info > (3,6,3))" && (
101+
curl -sL https://github.com/python/cpython/pull/1224.patch |
102+
patch -fsup 1 -d %CONDA_PREFIX% ) || ( set errorlevel= )
103+
98104
# Let the install prefer the static builds of the libs
99105
- set LIBRARY_LIB=%CONDA_PREFIX%\Library\lib
100106
- mkdir lib || cmd /c "exit /b 0"

0 commit comments

Comments
 (0)