fix warnings due to PEP 420

release/4.3a0
Varun Agrawal 2023-09-05 12:04:54 -04:00
parent 30b4d98397
commit fe2080f2b1
1 changed files with 6 additions and 9 deletions

View File

@ -1,19 +1,17 @@
"""Setup file to install the GTSAM package."""
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
from setuptools import setup, find_namespace_packages
packages = find_packages(where=".")
packages = find_namespace_packages(
where=".",
exclude=('build', 'build.*', 'CMakeFiles', 'CMakeFiles.*',
'gtsam.notebooks', '*.preamble', '*.specializations', 'dist'))
print("PACKAGES: ", packages)
package_data = {
'': [
"./*.so",
"./*.dll",
"Data/*" # Add the data files to the package
"Data/**/*" # Add the data files in subdirectories
"./*.dll"
]
}
@ -41,7 +39,6 @@ setup(
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
packages=packages,