56 lines
1.8 KiB
Python
56 lines
1.8 KiB
Python
import os
|
|
import sys
|
|
try:
|
|
from setuptools import setup, find_packages
|
|
except ImportError:
|
|
from distutils.core import setup, find_packages
|
|
|
|
packages = find_packages()
|
|
|
|
package_data = {
|
|
package:
|
|
[f for f in os.listdir(package.replace('.', os.path.sep)) if os.path.splitext(f)[1] in ('.so', '.pyd')]
|
|
for package in packages
|
|
}
|
|
|
|
cython_install_requirements = open("${CYTHON_INSTALL_REQUIREMENTS_FILE}").readlines()
|
|
|
|
install_requires = [line.strip() \
|
|
for line in cython_install_requirements \
|
|
if len(line.strip()) > 0 and not line.strip().startswith('#')
|
|
]
|
|
|
|
# Cleaner to read in the contents rather than copy them over.
|
|
readme_contents = open("${PROJECT_SOURCE_DIR}/README.md").read()
|
|
|
|
setup(
|
|
name='gtsam',
|
|
description='Georgia Tech Smoothing And Mapping library',
|
|
url='https://gtsam.org/',
|
|
version='${GTSAM_VERSION_STRING}', # https://www.python.org/dev/peps/pep-0440/
|
|
author='Frank Dellaert et. al.',
|
|
author_email='frank.dellaert@gtsam.org',
|
|
license='Simplified BSD license',
|
|
keywords='slam sam robotics localization mapping optimization',
|
|
long_description=readme_contents,
|
|
long_description_content_type='text/markdown',
|
|
python_requires='>=2.7',
|
|
# https://pypi.org/pypi?%3Aaction=list_classifiers
|
|
classifiers=[
|
|
'Development Status :: 5 - Production/Stable',
|
|
'Intended Audience :: Education',
|
|
'Intended Audience :: Developers',
|
|
'Intended Audience :: Science/Research',
|
|
'Operating System :: MacOS',
|
|
'Operating System :: Microsoft :: Windows',
|
|
'Operating System :: POSIX',
|
|
'License :: OSI Approved :: BSD License',
|
|
'Programming Language :: Python :: 2',
|
|
'Programming Language :: Python :: 3',
|
|
],
|
|
|
|
packages=packages,
|
|
package_data=package_data,
|
|
install_requires=install_requires
|
|
)
|