Changeset 271

Show
Ignore:
Timestamp:
10/06/05 12:58:51 (19 years ago)
Author:
jerome
Message:

Now warns about psyco missing only during setup, and stays quiet while running.

Location:
pkpgcounter/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/pdlparser.py

    r252 r271  
    5858            import psyco  
    5959        except ImportError :     
    60             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") 
    6160            pass # Psyco is not installed 
    6261        else :     
  • pkpgcounter/trunk/setup.py

    r235 r271  
    3333    sys.stderr.write("You need the DistUtils Python module.\nunder Debian, you may have to install the python-dev package.\nOf course, YMMV.\n") 
    3434    sys.exit(-1) 
     35     
     36try :     
     37    import psyco 
     38except ImportError :     
     39    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") 
    3540 
    3641sys.path.insert(0, "pkpgpdls")