Gajim need latest nbxmpp version

This commit is contained in:
Yann Leboulanger 2013-12-23 16:56:58 +01:00
parent 0fb4f69855
commit 7887f52ed7
1 changed files with 9 additions and 0 deletions

View File

@ -68,6 +68,15 @@ except ImportError:
print('Gajim needs python-nbxmpp to run. Quiting...')
sys.exit()
try:
from distutils.version import LooseVersion as V
if V(nbxmpp.__version__) < V("0.3"):
print 'Gajim needs python-nbxmpp > 0.3 to run. Quiting...'
sys.exit()
except:
print 'Gajim needs python-nbxmpp > 0.3 to run. Quiting...'
sys.exit()
#from common import demandimport
#demandimport.enable()
#demandimport.ignore += ['GObject._gobject', 'libasyncns', 'i18n',