setup.py.in 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. """Setup file to install the GTSAM package."""
  2. try:
  3. from setuptools import setup, find_packages
  4. except ImportError:
  5. from distutils.core import setup, find_packages
  6. packages = find_packages(where=".")
  7. print("PACKAGES: ", packages)
  8. package_data = {
  9. '': [
  10. "./*.so",
  11. "./*.dll",
  12. "Data/*" # Add the data files to the package
  13. "Data/**/*" # Add the data files in subdirectories
  14. ]
  15. }
  16. # Cleaner to read in the contents rather than copy them over.
  17. readme_contents = open("${GTSAM_SOURCE_DIR}/README.md").read()
  18. setup(
  19. name='gtsam',
  20. description='Georgia Tech Smoothing And Mapping library',
  21. url='https://gtsam.org/',
  22. version='${GTSAM_VERSION_STRING}', # https://www.python.org/dev/peps/pep-0440/
  23. author='Frank Dellaert et. al.',
  24. author_email='frank.dellaert@gtsam.org',
  25. license='Simplified BSD license',
  26. keywords='slam sam robotics localization mapping optimization',
  27. long_description_content_type='text/markdown',
  28. long_description=readme_contents,
  29. # https://pypi.org/pypi?%3Aaction=list_classifiers
  30. classifiers=[
  31. 'Development Status :: 5 - Production/Stable',
  32. 'Intended Audience :: Education',
  33. 'Intended Audience :: Developers',
  34. 'Intended Audience :: Science/Research',
  35. 'Operating System :: MacOS',
  36. 'Operating System :: Microsoft :: Windows',
  37. 'Operating System :: POSIX',
  38. 'License :: OSI Approved :: BSD License',
  39. 'Programming Language :: Python :: 2',
  40. 'Programming Language :: Python :: 3',
  41. ],
  42. packages=packages,
  43. include_package_data=True,
  44. package_data=package_data,
  45. test_suite="gtsam.tests",
  46. install_requires=open("${GTSAM_SOURCE_DIR}/python/requirements.txt").readlines(),
  47. zip_safe=False,
  48. )