import os try: from setuptools import setup except ImportError: from distutils.core import setup packages = ['gtsam', 'gtsam_eigency'] if ${GTSAM_BUILD_UNSTABLE}: packages += 'gtsam_unstable' setup( name='gtsam', description='Georgia Tech Smoothing And Mapping library', url='https://bitbucket.org/gtborg/gtsam', version='${GTSAM_VERSION_STRING}', # https://www.python.org/dev/peps/pep-0440/ license='Simplified BSD license', keywords='slam sam', long_description=open('${PROJECT_SOURCE_DIR}/README.md', 'r').read(), # https://pypi.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Education', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', ], packages=packages, package_data={package: [f for f in os.listdir(package) if os.path.splitext(f)[1] == '.so'] for package in packages }, install_requires=open('${PROJECT_SOURCE_DIR}/cython/requirements.txt', 'r').read().splitlines() )