#!/usr/bin/env python

from distutils.core import setup, Extension

pyodbapi = Extension('odb._pyodbapi',
                     sources=['odb/pyodbapi.i'],
                     swig_opts=['-c++', '-I@CMAKE_CURRENT_SOURCE_DIR@/..'],
                     include_dirs=['.', '@CMAKE_CURRENT_BINARY_DIR@/..',
                                   '@CMAKE_CURRENT_SOURCE_DIR@/..',
                                   '@_ECKIT_INCLUDES@'],
                     library_dirs=['@CMAKE_BINARY_DIR@/lib'],
                     libraries=['Odb'],
                     extra_objects=[])

setup(name='odb',
      version='@ODB_API_VERSION_STR@',
      author='ECMWF',
      author_email='Software.Support@ecmwf.int',
      description="""Python interface for odb_api""",
      license='Apache License, Version 2.0',
      url='https://software.ecmwf.int/wiki/display/ODB/ODB+API',
      download_url='https://software.ecmwf.int/wiki/display/ODB/Releases',
      ext_modules=[pyodbapi],
      packages=['odb'])
