Skip to content

Commit 22be5ae

Browse files
committed
Appveyor: check that libs are statically compiled in
1 parent a30df8a commit 22be5ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

appveyor.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ install:
9797
test_script:
9898
# Now build the thing..
9999
- '%CMD_IN_ENV% python setup.py develop'
100+
# these should show no z, png, or freetype dll...
101+
- set "DUMPBIN=%VS140COMNTOOLS%\..\..\VC\bin\dumpbin.exe"
102+
#- cmd: '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\_png*.pyd'
103+
#- cmd: '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd'
104+
- cmd: '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
105+
- cmd: '"%DUMPBIN%" /DEPENDENTS lib\\matplotlib\\_png*.pyd | findstr z.*.dll && exit /b 1 || exit /b 0'
106+
- cmd: '"%DUMPBIN%" /DEPENDENTS lib\\matplotlib\\_png*.pyd | findstr png.*.dll && exit /b 1 || exit /b 0'
107+
100108
# Test import of tkagg backend
101109
- python -c "import matplotlib as m; m.use('tkagg'); import matplotlib.pyplot as plt; print(plt.get_backend())"
102110
# tests

0 commit comments

Comments
 (0)