Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 086d91c

Browse files
committed
Appveyor: check that libs are statically compiled in
1 parent 6c5f46c commit 086d91c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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)