~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-07-07 21:30:06 UTC
  • mfrom: (5333.1.2 better_pyqt_include)
  • Revision ID: pqm@pqm.ubuntu.com-20100707213006-lriphkkbzwwrl7ne
(jameinel) Use a better list of PyQt includes and excludes. (Gary van der
 Merwe)

Show diffs side-by-side

added added

removed removed

Lines of Context:
413
413
 
414
414
def get_qbzr_py2exe_info(includes, excludes, packages, data_files):
415
415
    # PyQt4 itself still escapes the plugin detection code for some reason...
416
 
    packages.append('PyQt4')
417
 
    excludes.append('PyQt4.elementtree.ElementTree')
418
 
    excludes.append('PyQt4.uic.port_v3')
 
416
    includes.append('PyQt4.QtCore')
 
417
    includes.append('PyQt4.QtGui')
419
418
    includes.append('sip') # extension module required for Qt.
420
419
    packages.append('pygments') # colorizer for qbzr
421
420
    packages.append('docutils') # html formatting
422
421
    includes.append('win32event')  # for qsubprocess stuff
423
 
    # but we can avoid many Qt4 Dlls.
424
 
    dll_excludes.extend(
425
 
        """QtAssistantClient4.dll QtCLucene4.dll QtDesigner4.dll
426
 
        QtHelp4.dll QtNetwork4.dll QtOpenGL4.dll QtScript4.dll
427
 
        QtSql4.dll QtTest4.dll QtWebKit4.dll QtXml4.dll
428
 
        qscintilla2.dll""".split())
429
422
    # the qt binaries might not be on PATH...
430
423
    # They seem to install to a place like C:\Python25\PyQt4\*
431
424
    # Which is not the same as C:\Python25\Lib\site-packages\PyQt4