Skip to content

Commit 453138f

Browse files
committed
Merge pull request #521 from mdboom/pyside_info
Check for pyside in setupext.py
2 parents bb99462 + f2341b5 commit 453138f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
build_ttconv, print_line, print_status, print_message, \
4040
print_raw, check_for_freetype, check_for_libpng, check_for_gtk, \
4141
check_for_tk, check_for_macosx, check_for_numpy, \
42-
check_for_qt, check_for_qt4, check_for_cairo, \
42+
check_for_qt, check_for_qt4, check_for_pyside, check_for_cairo, \
4343
check_provide_pytz, check_provide_dateutil,\
4444
check_for_dvipng, check_for_ghostscript, check_for_latex, \
4545
check_for_pdftops, check_for_datetime, options, build_png, build_tri
@@ -173,6 +173,7 @@ def chop_package(fname):
173173
# These are informational only. We don't build any extensions for them.
174174
check_for_qt()
175175
check_for_qt4()
176+
check_for_pyside()
176177
check_for_cairo()
177178

178179
print_raw("")

setupext.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,18 @@ def check_for_qt4():
417417
pyqtconfig.Configuration().pyqt_version_str))
418418
return True
419419

420+
def check_for_pyside():
421+
try:
422+
from PySide import __version__
423+
from PySide import QtCore
424+
except ImportError:
425+
print_status("PySide", "no")
426+
return False
427+
else:
428+
print_status("PySide", "Qt: %s, PySide: %s" %
429+
(QtCore.__version__, __version__))
430+
return True
431+
420432
def check_for_cairo():
421433
try:
422434
import cairo

0 commit comments

Comments
 (0)