From fe2080f2b13404f05f5b3c75de0725e39a79e7c2 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Tue, 5 Sep 2023 12:04:54 -0400 Subject: [PATCH] fix warnings due to PEP 420 --- python/setup.py.in | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/python/setup.py.in b/python/setup.py.in index 9aa4b71f4..e15e39075 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -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,