Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

setup: add PyQt4 dependencies instead of PyGtk's

Changeset cef10e7ab0e5

Parent 68b55b4bcd85

by Yuya Nishihara

Changes to one file · Browse files at cef10e7ab0e5 Showing diff from parent 68b55b4bcd85 Diff from another changeset...

Change 1 of 1 Show Entire File setup.py Stacked
 
222
223
224
225
226
 
 
 
 
 
 
 
 
 
227
228
229
 
222
223
224
 
 
225
226
227
228
229
230
231
232
233
234
235
236
@@ -222,8 +222,15 @@
  _data_files = [(root, [os.path.join(root, file_) for file_ in files])   for root, dirs, files in os.walk('icons')]   - # add library files to support PyGtk-based dialogs/windows - includes = ['dbhash', 'pango', 'atk', 'pangocairo', 'cairo', 'gobject'] + # for PyQt, see http://www.py2exe.org/index.cgi/Py2exeAndPyQt + includes = ['sip'] + + # Qt4 plugins, see http://stackoverflow.com/questions/2206406/ + def qt4_plugins(subdir, *dlls): + import PyQt4 + pluginsdir = join(os.path.dirname(PyQt4.__file__), 'plugins') + return (subdir, [join(pluginsdir, subdir, e) for e in dlls]) + _data_files.append(qt4_plugins('imageformats', 'qico4.dll', 'qsvg4.dll'))     # Manually include other modules py2exe can't find by itself.   if 'hgext.highlight' in hgextmods: