| 
									
										
										
										
											2020-08-31 21:51:14 +08:00
										 |  |  | import glob | 
					
						
							| 
									
										
										
										
											2019-02-08 23:15:20 +08:00
										 |  |  | import os | 
					
						
							| 
									
										
										
										
											2019-03-11 23:02:11 +08:00
										 |  |  | import sys | 
					
						
							| 
									
										
										
										
											2020-08-18 23:03:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-08 19:57:05 +08:00
										 |  |  | try: | 
					
						
							| 
									
										
										
										
											2019-02-08 23:34:09 +08:00
										 |  |  |     from setuptools import setup, find_packages | 
					
						
							| 
									
										
										
										
											2019-02-08 19:57:05 +08:00
										 |  |  | except ImportError: | 
					
						
							| 
									
										
										
										
											2019-02-08 23:34:09 +08:00
										 |  |  |     from distutils.core import setup, find_packages | 
					
						
							| 
									
										
										
										
											2019-02-08 19:57:05 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-18 23:03:51 +08:00
										 |  |  | packages = find_packages(where=".") | 
					
						
							|  |  |  | print("PACKAGES: ", packages) | 
					
						
							| 
									
										
										
										
											2020-08-31 21:51:14 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | data_path = '${GTSAM_SOURCE_DIR}/examples/Data/' | 
					
						
							|  |  |  | data_files_and_directories = glob.glob(data_path + '**', recursive=True) | 
					
						
							|  |  |  | data_files = [x for x in data_files_and_directories if not os.path.isdir(x)] | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-25 07:39:49 +08:00
										 |  |  | package_data = { | 
					
						
							| 
									
										
										
										
											2020-08-18 23:03:51 +08:00
										 |  |  |     '': [ | 
					
						
							|  |  |  |         './*.so', | 
					
						
							|  |  |  |         './*.dll', | 
					
						
							|  |  |  |     ] | 
					
						
							| 
									
										
										
										
											2020-06-25 07:39:49 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Cleaner to read in the contents rather than copy them over. | 
					
						
							|  |  |  | readme_contents = open("${PROJECT_SOURCE_DIR}/README.md").read() | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-08 19:57:05 +08:00
										 |  |  | setup( | 
					
						
							|  |  |  |     name='gtsam', | 
					
						
							|  |  |  |     description='Georgia Tech Smoothing And Mapping library', | 
					
						
							| 
									
										
										
										
											2019-05-30 05:13:19 +08:00
										 |  |  |     url='https://gtsam.org/', | 
					
						
							| 
									
										
										
										
											2019-02-08 19:57:05 +08:00
										 |  |  |     version='${GTSAM_VERSION_STRING}',  # https://www.python.org/dev/peps/pep-0440/ | 
					
						
							| 
									
										
										
										
											2019-05-30 05:13:19 +08:00
										 |  |  |     author='Frank Dellaert et. al.', | 
					
						
							|  |  |  |     author_email='frank.dellaert@gtsam.org', | 
					
						
							| 
									
										
										
										
											2019-02-08 19:57:05 +08:00
										 |  |  |     license='Simplified BSD license', | 
					
						
							| 
									
										
										
										
											2019-03-11 22:54:12 +08:00
										 |  |  |     keywords='slam sam robotics localization mapping optimization', | 
					
						
							| 
									
										
										
										
											2020-08-24 10:01:49 +08:00
										 |  |  |     long_description_content_type='text/markdown', | 
					
						
							| 
									
										
										
										
											2020-06-25 07:39:49 +08:00
										 |  |  |     long_description=readme_contents, | 
					
						
							| 
									
										
										
										
											2019-02-08 19:57:05 +08:00
										 |  |  |     # https://pypi.org/pypi?%3Aaction=list_classifiers | 
					
						
							|  |  |  |     classifiers=[ | 
					
						
							|  |  |  |         'Development Status :: 5 - Production/Stable', | 
					
						
							|  |  |  |         'Intended Audience :: Education', | 
					
						
							|  |  |  |         'Intended Audience :: Developers', | 
					
						
							|  |  |  |         'Intended Audience :: Science/Research', | 
					
						
							| 
									
										
										
										
											2019-02-20 17:03:34 +08:00
										 |  |  |         'Operating System :: MacOS', | 
					
						
							|  |  |  |         'Operating System :: Microsoft :: Windows', | 
					
						
							|  |  |  |         'Operating System :: POSIX', | 
					
						
							| 
									
										
										
										
											2019-02-08 19:57:05 +08:00
										 |  |  |         'License :: OSI Approved :: BSD License', | 
					
						
							| 
									
										
										
										
											2019-02-20 17:03:34 +08:00
										 |  |  |         'Programming Language :: Python :: 2', | 
					
						
							|  |  |  |         'Programming Language :: Python :: 3', | 
					
						
							| 
									
										
										
										
											2019-02-08 19:57:05 +08:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2019-02-08 23:15:20 +08:00
										 |  |  |     packages=packages, | 
					
						
							| 
									
										
										
										
											2020-06-25 07:39:49 +08:00
										 |  |  |     package_data=package_data, | 
					
						
							| 
									
										
										
										
											2020-08-31 21:51:14 +08:00
										 |  |  |     data_files=[('${GTSAM_PYTHON_DATASET_DIR}', data_files),], | 
					
						
							| 
									
										
										
										
											2020-08-18 23:03:51 +08:00
										 |  |  |     test_suite="gtsam.tests", | 
					
						
							|  |  |  |     install_requires=["numpy"], | 
					
						
							|  |  |  |     zip_safe=False, | 
					
						
							| 
									
										
										
										
											2019-02-08 19:57:05 +08:00
										 |  |  | ) |