Changeset 1173


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

matplotlib version number has to be cats to int

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/install

    r1172 r1173  
    1717    opts, args = getopt.getopt(sys.argv[1:], "p:m:h",
    1818                               ["exec-prefix=", "module-dir=", "help"])
    19    
     19
    2020except getopt.GetoptError:
    2121    usage()
     
    4141    if k in ("-m", "--module-dir"):
    4242        v = os.path.expanduser(v)
    43         v = os.path.expandvars(v)       
     43        v = os.path.expandvars(v)
    4444        if not os.path.exists(v):
    4545            print "The specified module directory %s doesn't exist" % v
     
    5353    print "Matplotlib not found"
    5454    sys.exit(1)
    55 if matplotlib.__version__.split(".")[1] < 87:
     55if int(matplotlib.__version__.split(".")[1]) < 87:
    5656    print "Warning: matplotlib version < 0.87." \
    5757          "This might cause errors. Please upgrade."
    58 
    5958try:
    6059    import matplotlib.backends.backend_tkagg
Note: See TracChangeset for help on using the changeset viewer.