Added check_deps.py

This script will attempt to import required and optional dependencies to
see if they are installed and available to the python interpreter.
This commit is contained in:
Bryan Schumaker 2011-01-22 10:59:23 -05:00
parent cd914936f3
commit e537f6d1c6
1 changed files with 36 additions and 0 deletions

36
scripts/check_deps.py Normal file
View File

@ -0,0 +1,36 @@
# Bryan Schumaker (1 / 22 / 2010)
# Use this script to check if all required and
# optional dependencies have been installed
print "Checking for gstreamer"
import gst
print "Checking for tagpy"
import tagpy
print "Checking for gobject"
import gobject
print "Checking for gtk"
import gtk
print "Checking for pango"
import pango
print ""
print "==================="
print "Basic checks passed"
print "==================="
print ""
warning = "WARNING: install %s to use the %s plugin"
try:
print "Checking for pynotify"
import pynotify
except:
print warning % ("pynotify", "notify")
try:
print "Checking for webkit"
except:
print warning % ("webkit", "web radio")