From 67c7dbfdebc30c66313fa20486e0972299df4dc2 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Fri, 13 Oct 2023 11:50:18 -0500 Subject: [PATCH] Resolves setuptools "Package would be ignored" warnings Removed MANIFEST.in, set include_package_data=False, added folders and files to package_data keyword of setup command. --- MANIFEST.in | 23 ----------------------- setup.py | 26 ++++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 25 deletions(-) delete mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index d72914b30b..0000000000 --- a/MANIFEST.in +++ /dev/null @@ -1,23 +0,0 @@ -recursive-include dpctl/include *.h -recursive-include dpctl/include *.hpp -include dpctl/include/dpctl4pybind11.hpp -recursive-include dpctl *.pxd -recursive-include dpctl *.cmake -include dpctl/_sycl_context.h -include dpctl/_sycl_context_api.h -include dpctl/_sycl_device.h -include dpctl/_sycl_device_api.h -include dpctl/_sycl_queue.h -include dpctl/_sycl_queue_api.h -include dpctl/_sycl_event.h -include dpctl/_sycl_event_api.h -include dpctl/memory/_memory.h -include dpctl/memory/_memory_api.h -include dpctl/program/_program.h -include dpctl/program/_program_api.h -include dpctl/tensor/_usmarray.h -include dpctl/tensor/_usmarray_api.h -recursive-include dpctl/tensor/include * -recursive-include dpctl/tensor/libtensor/include * -include dpctl/tests/input_files/* -include dpctl/tests/*.pyx diff --git a/setup.py b/setup.py index f6780633cc..eb942a71b4 100644 --- a/setup.py +++ b/setup.py @@ -176,9 +176,31 @@ def _get_cmdclass(): "dpctl.utils", ], package_data={ - "dpctl": ["tests/*.*", "tests/helper/*.py", "tests/elementwise/*.py"] + "dpctl": [ + "tests/*.*", + "tests/helper/*.py", + "tests/elementwise/*.py", + "tests/*.pyx", + "tests/input_files/*", + "resources/cmake/*.cmake", + "include/*.h*", + "include/syclinterface/*.h*", + "include/syclinterface/Config/*.h", + "include/syclinterface/Support/*.h", + "tensor/libtensor/include/kernels/*.h*", + "tensor/libtensor/include/utils/*.h*", + "tensor/include/dlpack/*.*", + "_sycl*.h", + "memory/_memory*.h", + "program/_program*.h", + "tensor/_usmarray*.h", + "*.pxd", + "memory/*.pxd", + "tensor/*.pxd", + "program/*.pxd", + ] }, - include_package_data=True, + include_package_data=False, zip_safe=False, setup_requires=["Cython"], install_requires=[