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:
parent
cd914936f3
commit
e537f6d1c6
|
@ -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")
|
Loading…
Reference in New Issue