diff --git a/setup.py b/setup.py index 2f138218881d..649e8e57b464 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ build_ttconv, print_line, print_status, print_message, \ print_raw, check_for_freetype, check_for_libpng, check_for_gtk, \ check_for_tk, check_for_macosx, check_for_numpy, \ - check_for_qt, check_for_qt4, check_for_cairo, \ + check_for_qt, check_for_qt4, check_for_pyside, check_for_cairo, \ check_provide_pytz, check_provide_dateutil,\ check_for_dvipng, check_for_ghostscript, check_for_latex, \ check_for_pdftops, check_for_datetime, options, build_png, build_tri @@ -173,6 +173,7 @@ def chop_package(fname): # These are informational only. We don't build any extensions for them. check_for_qt() check_for_qt4() +check_for_pyside() check_for_cairo() print_raw("") diff --git a/setupext.py b/setupext.py index 962cedc3d752..9e032cab7d12 100644 --- a/setupext.py +++ b/setupext.py @@ -417,6 +417,18 @@ def check_for_qt4(): pyqtconfig.Configuration().pyqt_version_str)) return True +def check_for_pyside(): + try: + from PySide import __version__ + from PySide import QtCore + except ImportError: + print_status("PySide", "no") + return False + else: + print_status("PySide", "Qt: %s, PySide: %s" % + (QtCore.__version__, __version__)) + return True + def check_for_cairo(): try: import cairo