diff --git a/quicksetup.py b/quicksetup.py index dafa549..1a0fd6a 100644 --- a/quicksetup.py +++ b/quicksetup.py @@ -106,11 +106,23 @@ elif platform.system() == "Darwin": print "installing pyobjc" pip_install("pyobjc") - print "for Mac OS X, use homebrew or macports to install pyqt4:" - print " brew install cartr/qt4/pyqt" - print " sudo port install py27-pyqt4" + try: + import Tkinter + print "for Mac OS X, use homebrew or macports to install pyqt4." + print " brew install cartr/qt4/pyqt" + print " sudo port install py27-pyqt4" + except: # mac doesn't have tkinter + print "for Mac OS X, use homebrew or macports to install tkinter and pyqt4." + print "Homebrew:" + print " brew uninstall python" + print " brew install tk" + print " brew install python --with-tcl-tk" + print " brew install cartr/qt4/pyqt" + print "MacPorts:" + print " sudo port install py27-tkinter -x11 +quartz" + print " sudo port install py27-pyqt4" elif platform.system() == "Linux": - print "you need to install PyQt4 on your linux distro after this" + print "you need to install PyQt4 and tkinter on your linux distro after this" print "done"