from setuptools import find_packages
from skbuild import setup


def exclude_libcxx_symlink(cmake_manifest):
    return list(
        filter(
            lambda name: not ("include/rapids/libcxx/include" in name),
            cmake_manifest,
        )
    )


packages = find_packages(include=["cuvs*"])
setup(
    # Don't want libcxx getting pulled into wheel builds.
    cmake_process_manifest_hook=exclude_libcxx_symlink,
    packages=packages,
    package_data={key: ["VERSION", "*.pxd"] for key in packages},
    zip_safe=False,
)
