e537f6d1c6
This script will attempt to import required and optional dependencies to see if they are installed and available to the python interpreter.
37 lines
674 B
Python
37 lines
674 B
Python
# 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")
|