@@ -68,24 +68,14 @@ install:
6868 - activate test-environment
6969 - echo %PYTHON_VERSION% %TARGET_ARCH%
7070 # pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
71- - pip install -q "pytest>=3.4,!=4.6.0" "pytest-cov>=2.3.1" pytest-rerunfailures pytest-timeout pytest-xdist "pandas!=0.25.0"
71+ - pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis36.txt
7272
7373 # Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
7474 # https://github.com/matplotlib/matplotlib/issues/9176
7575 - python -c "import sys; sys.exit(not (3,) < sys.version_info < (3,6,3))" && (
7676 curl -sL https://github.com/python/cpython/pull/1224.patch |
7777 patch -fsup 1 -d %CONDA_PREFIX% ) || cmd /c "exit /b 0"
7878
79- # Let the install prefer the static builds of the libs
80- - set LIBRARY_LIB=%CONDA_PREFIX%\Library\lib
81- - mkdir lib || cmd /c "exit /b 0"
82- - copy /y %LIBRARY_LIB%\zlibstatic.lib lib\zlib.lib
83- - copy /y %LIBRARY_LIB%\libpng16_static.lib lib\libpng16.lib
84- # These z.lib / png.lib are not static versions but files which end up as
85- # dependencies to the dll file. This is fine for the conda build, but not here
86- # and for the wheels
87- - del %LIBRARY_LIB%\png.lib
88- - del %LIBRARY_LIB%\z.lib
8979 # enables the local freetype build
9080 - set MPLLOCALFREETYPE=1
9181 # Show the installed packages + versions
@@ -97,9 +87,9 @@ test_script:
9787 - pip install -ve .
9888 # these should show no z, png, or freetype dll...
9989 - set "DUMPBIN=%VS140COMNTOOLS%\..\..\VC\bin\dumpbin.exe"
100- - ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
101- - ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd | findstr z.*.dll && exit /b 1 || exit /b 0'
102- - ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd | findstr png.*.dll && exit /b 1 || exit /b 0'
90+ - ' if x%MPLSTATICBUILD% == xTrue "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
91+ - ' if x%MPLSTATICBUILD% == xTrue "%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd | findstr z.*.dll && exit /b 1 || exit /b 0'
92+ - ' if x%MPLSTATICBUILD% == xTrue "%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd | findstr png.*.dll && exit /b 1 || exit /b 0'
10393
10494 # this are optional dependencies so that we don't skip so many tests...
10595 - if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape miktex pillow
@@ -116,6 +106,7 @@ test_script:
116106after_test :
117107 # After the tests were a success, build wheels with the static libs
118108 # Hide the output, the copied files really clutter the build log...
109+ - set MPLSTATICBUILD=True
119110 - ' python setup.py bdist_wheel > NUL:'
120111 - dir dist\
121112 - echo finished...
0 commit comments