Changeset 996 for pykota/trunk/setup.py

Show
Ignore:
Timestamp:
05/17/03 18:31:38 (21 years ago)
Author:
jalet
Message:

Dies gracefully if DistUtils? is not present.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/setup.py

    r973 r996  
    2323# 
    2424# $Log$ 
     25# Revision 1.14  2003/05/17 16:31:38  jalet 
     26# Dies gracefully if DistUtils is not present. 
     27# 
    2528# Revision 1.13  2003/04/29 18:37:54  jalet 
    2629# Pluggable accounting methods (actually doesn't support external scripts) 
     
    7578import os 
    7679import shutil 
    77 from distutils.core import setup 
    7880import ConfigParser 
     81try : 
     82    from distutils.core import setup 
     83except ImportError :     
     84    sys.stderr.write("You need the DistUtils Python module.\nunder Debian, you may have to install the python-dev package.\nOf course, YMMV.\n") 
     85    sys.exit(-1) 
    7986 
    8087sys.path.insert(0, "pykota")