import os
from setuptools import setup
from setuptools import Extension
print('This module requires libboost-python-dev, libpython-dev')
config = {}
config['include_path'] = ['pydhs/header', ]

libraries = ['python3.6m', 'boost_python3']

classifiers = [
    'Development Status :: 3 - Alpha',

    'Intended Audience :: Developers',
    'Topic :: Software Development :: Build Tools',

    'License :: OSI Approved :: MIT License',

    'Programming Language :: Python :: 3.6',
]

dhs = Extension('dhs',
                sources=['pydhs/src/' + i for i in os.listdir('pydhs/src') if i.endswith('cpp')],
                define_macros=[('MAJOR_VERSION', '1'), ('MINOR_VERSION', '6')],
                extra_compile_args=['-std=c++11'],
                include_dirs=config.get('include_path'),
                # library_dirs=config.get('libarary_path'),
                libraries=libraries)

setup(name='pydhs',
      classifiers=classifiers,
      license='MIT',
      version='1.6.7',
      description='Python wrapper of C++ Hyperpath algorithm implementation',
      keywords='hyperpath',
      author='Jiangshan(Tonny) Ma',
      author_email='tonny.achilles@gmail.com',
      packages=['pydhs', 'pydhs.sample'],
      package_data={'pydhs': ['sample/*']},
      ext_modules=[dhs, ])
