applib/python/setup.py
changeset 0 2b3e5ec03512
equal deleted inserted replaced
-1:000000000000 0:2b3e5ec03512
       
     1 from distutils.core import setup, Extension
       
     2 from os import getenv
       
     3 
       
     4 INCDIR  = getenv('INCDIR')
       
     5 LIBDIR  = getenv('LIBDIR')
       
     6 VERSION = getenv('VERSION')
       
     7 
       
     8 if INCDIR  == None: raise ValueError('must set INCDIR')
       
     9 if LIBDIR  == None: raise ValueError('must set LIBDIR')
       
    10 if VERSION == None: raise ValueError('must set VERSION')
       
    11 
       
    12 setup(name="dtnapi", 
       
    13       version=VERSION,
       
    14       description="DTN API Python Bindings",
       
    15       author="Michael Demmer",
       
    16       author_email="demmer@cs.berkeley.edu",
       
    17       url="http://www.dtnrg.org",
       
    18       py_modules=["dtnapi"],
       
    19       ext_modules=[Extension("_dtnapi", ["dtn_api_wrap_python.cc"],
       
    20                              include_dirs=[INCDIR],
       
    21 			     library_dirs=[LIBDIR],
       
    22                              libraries=["".join(['dtnapi-', VERSION])])]
       
    23       )