Changeset 1172 for trunk


Ignore:
Timestamp:
08/23/06 09:53:03 (18 years ago)
Author:
mar637
Message:

added matplotlib version check. added usage. added ipython detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/install

    r1163 r1172  
    88
    99def usage():
    10     pass
     10    print """Usage:
     11    ./install [-p <prefix for asap binary>]
     12              [-m <where to install python module>]
     13              [-h] this message
     14    """
    1115
    1216try:
     
    1519   
    1620except getopt.GetoptError:
    17     print "error"
     21    usage()
    1822    sys.exit(2)
    1923
     
    4953    print "Matplotlib not found"
    5054    sys.exit(1)
     55if matplotlib.__version__.split(".")[1] < 87:
     56    print "Warning: matplotlib version < 0.87." \
     57          "This might cause errors. Please upgrade."
     58
    5159try:
    5260    import matplotlib.backends.backend_tkagg
     
    6270        print "You need to have either 'numpy' or 'numarray' installed."
    6371        sys.exit(1)
    64 print "Looks like everything is here"
     72try:
     73    import IPython
     74except ImportError:
     75    print "IPython should be installed."
     76    sys.exit(1)
     77
     78print "All required modules were found."
    6579moddir = os.path.join(moduledir, "asap")
    6680bindir =  os.path.join(execprefix, "bin")
Note: See TracChangeset for help on using the changeset viewer.