Changeset b441081 in sasview


Ignore:
Timestamp:
Mar 31, 2014 11:14:35 AM (11 years ago)
Author:
ajj
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
a3afe20
Parents:
663e988
Message:

Updated check_packages to provide more information about installed versions of required packages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • check_packages.py

    r131576f rb441081  
    44import os 
    55import sys 
     6 
    67if sys.platform =='win32': 
    78    IS_WIN = True 
     
    1112    import setuptools 
    1213    print "==> setuptools-%s installed."% setuptools.__version__ 
    13     #if setuptools.__version__ != '0.6c11': 
    14     #    print "!!! Recommend to install 0.6c11."  
     14    if setuptools.__version__ != '0.6c11': 
     15        print "!!! Recommend to install 0.6c11."  
    1516except: 
    1617    print "!!! setuptools-0.6c11 not installed." 
    1718try: 
    1819    import pyparsing 
    19     if pyparsing.__version__ == '1.5.5': 
    20         print "==> pyparsing-%s installed."% pyparsing.__version__ 
    21     else: 
     20    print "==> pyparsing-%s installed."% pyparsing.__version__ 
     21    if pyparsing.__version__ != '1.5.5': 
    2222        print "!!! 1.5.5 recommended." 
    2323except: 
     
    2525try: 
    2626    import html5lib 
     27    print "==> html5lib-%s installed."% html5lib.__version__ 
    2728    if html5lib.__version__.count('0.95') > 0: 
    28         print "==> html5lib-%s installed."% html5lib.__version__ 
    29     else: 
    3029        print "!!! 0.95 recommended." 
    3130except: 
     
    3332try: 
    3433    import pyPdf 
    35     print "==> pyPdf installed." 
     34    print "==> pyPdf-%s installed."% pyPdf.__version__ 
     35    if pyPdf.__version__ != '1.13': 
     36        print "!!! 1.13 recommended." 
    3637except: 
    3738    print "!!! pyPdf-1.13 not installed (optional)." 
    3839try: 
    3940    import reportlab 
    40     print "==> reportlab installed." 
     41    print "==> reportlab-%s installed."% reportlab.__version__ 
     42    if reportlab.__version__ != '2.5': 
     43        print "!!! 2.5 recommended" 
    4144except: 
    4245    print "!!! reportlab-2.5 not installed." 
    4346try: 
    4447    import lxml 
    45     print "==> lxml installed." 
     48    print "==> lxml-%s installed."% lxml.__version__ 
     49    if lxml.__version__ != '2.3': 
     50        print "!!! 2.3 recommended" 
    4651except: 
    4752    print "!!! lxml-2.3 not installed." 
    4853try: 
    49     import PIL 
    50     print "==> PIL installed." 
     54    import Image 
     55    print "==> PIL-%s installed."% Image.VERSION 
     56    if Image.VERSION != '1.1.7': 
     57        print "!!! 1.1.7 recommended." 
    5158except: 
    5259    print "!!! PIL-1.1.7 not installed." 
Note: See TracChangeset for help on using the changeset viewer.