Changeset 289 for pkpgcounter/trunk

Show
Ignore:
Timestamp:
11/23/05 22:33:29 (18 years ago)
Author:
jerome
Message:

Now FAIL when PIL is missing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/setup.py

    r288 r289  
    3535     
    3636try :     
     37    from PIL import Image 
     38except ImportError :     
     39    sys.stderr.write("You need the Python Imaging Library (aka PIL).\nYou can grab it from http://www.pythonware.com\n") 
     40    sys.exit(-1) 
     41     
     42try :     
    3743    import psyco 
    3844except ImportError :     
    3945    sys.stderr.write("WARN: If you are running on a 32 Bits x86 platform, you should install the Python Psyco module if possible, this would greatly speedup parsing. NB : Psyco doesn't work on other platforms, so don't worry if you're in this case.\n") 
    4046     
    41 try :     
    42     from PIL import Image 
    43 except ImportError :     
    44     sys.stderr.write("You need the Python Imaging Library (aka PIL).\nYou can grab it from http://www.pythonware.com\n") 
    45  
    4647sys.path.insert(0, "pkpgpdls") 
    4748from pkpgpdls.version import __version__, __doc__