diff --git a/python/pylibraft/MANIFEST.in b/python/pylibraft/MANIFEST.in deleted file mode 100644 index 761f403b54..0000000000 --- a/python/pylibraft/MANIFEST.in +++ /dev/null @@ -1,7 +0,0 @@ -# Cython files -recursive-include pylibraft *.pxd -recursive-include pylibraft *.pyx - -# Build files. Don't use a recursive include on '.' in case the repo is dirty -include . CMakeLists.txt -recursive-include pylibraft CMakeLists.txt diff --git a/python/pylibraft/setup.py b/python/pylibraft/setup.py index d00e36d804..d1a73629ef 100644 --- a/python/pylibraft/setup.py +++ b/python/pylibraft/setup.py @@ -27,10 +27,11 @@ def exclude_libcxx_symlink(cmake_manifest): ) +packages = find_packages(include=["pylibraft*"]) setup( - include_package_data=True, # Don't want libcxx getting pulled into wheel builds. cmake_process_manifest_hook=exclude_libcxx_symlink, - packages=find_packages(include=["pylibraft", "pylibraft.*"]), + packages=packages, + package_data={key: ["*.pxd"] for key in packages}, zip_safe=False, ) diff --git a/python/raft-dask/MANIFEST.in b/python/raft-dask/MANIFEST.in deleted file mode 100644 index f160a731e9..0000000000 --- a/python/raft-dask/MANIFEST.in +++ /dev/null @@ -1,7 +0,0 @@ -# Cython files -recursive-include raft-dask *.pxd -recursive-include raft-dask *.pyx - -# Build files. Don't use a recursive include on '.' in case the repo is dirty -include . CMakeLists.txt -recursive-include raft-dask CMakeLists.txt diff --git a/python/raft-dask/setup.py b/python/raft-dask/setup.py index c9215e96e6..391be0ac72 100644 --- a/python/raft-dask/setup.py +++ b/python/raft-dask/setup.py @@ -27,9 +27,10 @@ def exclude_libcxx_symlink(cmake_manifest): ) +packages = find_packages(include=["raft_dask*"]) setup( - include_package_data=True, cmake_process_manifest_hook=exclude_libcxx_symlink, - packages=find_packages(include=["raft_dask", "raft_dask.*"]), + packages=packages, + package_data={key: ["*.pxd"] for key in packages}, zip_safe=False, )