mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-19 13:23:29 +02:00
Clean up Qt plugins dir in windows build
This commit is contained in:
parent
1f837ca129
commit
1620dee548
2 changed files with 6 additions and 1 deletions
|
|
@ -197,6 +197,10 @@ def ignore_lib(root, items):
|
|||
if os.path.exists(tg):
|
||||
shutil.rmtree(tg)
|
||||
shutil.copytree(imfd, tg)
|
||||
for dirpath, dirnames, filenames in os.walk(tdir):
|
||||
for x in filenames:
|
||||
if not x.endswith('.dll'):
|
||||
os.remove(self.j(dirpath, x))
|
||||
|
||||
print
|
||||
print 'Adding third party dependencies'
|
||||
|
|
|
|||
|
|
@ -65,7 +65,8 @@ def test_sqlite():
|
|||
def test_qt():
|
||||
from PyQt4.Qt import (QWebView, QDialog, QImageReader, QNetworkAccessManager)
|
||||
fmts = set(map(unicode, QImageReader.supportedImageFormats()))
|
||||
if 'jpg' not in fmts or 'png' not in fmts:
|
||||
testf = set(['jpg', 'png', 'mng', 'svg', 'ico', 'gif'])
|
||||
if testf.intersection(fmts) != testf:
|
||||
raise RuntimeError(
|
||||
"Qt doesn't seem to be able to load its image plugins")
|
||||
QWebView, QDialog
|
||||
|
|
|
|||
Loading…
Reference in a new issue