source: main/waeup.sirp/branches/ulif-stress-multimech/multi-mechanize/lib/tools/dependency_checker.py @ 7480

Last change on this file since 7480 was 7478, checked in by uli, 13 years ago

Sample usage of multi-mechanize (not finished).

File size: 966 bytes
Line 
1#!/usr/bin/env python
2#
3#  Copyright (c) 2010 Corey Goldberg (corey@goldb.org)
4#  License: GNU LGPLv3
5
6#  This file is part of Multi-Mechanize
7
8
9""" script to verify all multi-mechanize dependencies are satisfied """
10
11
12import sys
13
14
15if sys.version_info >= (3,):
16    print 'sorry, no py3k support yet'
17elif sys.version_info < (2, 6, 3):
18    print 'incompatible python version detected: %s.  Minimum version supported is 2.6' % repr(sys.version_info)
19else:
20    print 'compatible python version detected: %s' % repr(sys.version_info)
21
22
23try:
24    import mechanize
25    print 'imported Mechanize succesfully'
26except ImportError:
27    print 'can not import Mechanize'
28
29
30try:
31    import pylab
32    print 'imported Matplotlib succesfully'
33except ImportError:
34    print 'can not import Matplotlib'
35
36
37try:
38    import sqlalchemy
39    print 'imported SQLAlchemy succesfully'
40except ImportError:
41    print 'can not import SQLAlchemy'
42   
Note: See TracBrowser for help on using the repository browser.