From 857df31df67a43292f5f2cb70631ee7c221dc0dd Mon Sep 17 00:00:00 2001 From: Peter Heywood Date: Fri, 4 Nov 2022 12:32:20 +0000 Subject: [PATCH 1/2] Address pyflamegpu setuptools package would be ignored warnings Replaces use of setuptools.find_packages with setuptools.find_namespaced_packages to fix Package would be ignored warnings generated by the include directory tree being embedded in the wheel. (setuptools docs)[https://setuptools.pypa.io/en/latest/userguide/datafiles.html#subdirectory-for-data-files] Closes #955 --- swig/python/setup.py.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swig/python/setup.py.in b/swig/python/setup.py.in index 2e1be9cc7..0853b8662 100644 --- a/swig/python/setup.py.in +++ b/swig/python/setup.py.in @@ -1,4 +1,4 @@ -from setuptools import find_packages, setup +from setuptools import find_namespace_packages, setup from setuptools.dist import Distribution class BinaryDistribution(Distribution): @@ -21,7 +21,7 @@ setup( url='https://github.com/FLAMEGPU/FLAMEGPU2', distclass=BinaryDistribution, cmdclass={'install': InstallPlatlib}, - packages=find_packages(), + packages=find_namespace_packages(), include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', From 55ab2f0a27496ff669a85adf3a33c5f9b7fa6c81 Mon Sep 17 00:00:00 2001 From: Peter Heywood Date: Fri, 4 Nov 2022 13:20:10 +0000 Subject: [PATCH 2/2] Add missing comma to setup.py.in --- swig/python/setup.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swig/python/setup.py.in b/swig/python/setup.py.in index 0853b8662..c7309e939 100644 --- a/swig/python/setup.py.in +++ b/swig/python/setup.py.in @@ -25,7 +25,7 @@ setup( include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', - 'Environment :: GPU :: NVIDIA CUDA :: @CUDAToolkit_VERSION_MAJOR@.@CUDAToolkit_VERSION_MINOR@' + 'Environment :: GPU :: NVIDIA CUDA :: @CUDAToolkit_VERSION_MAJOR@.@CUDAToolkit_VERSION_MINOR@', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX :: Linux',