From 167b46820388219097517bd3e62f744388e34837 Mon Sep 17 00:00:00 2001 From: Vladislav Zhurba Date: Wed, 6 Nov 2024 14:13:44 -0800 Subject: [PATCH] Use pyproject for auto discovery of packages and data --- cuda_bindings/pyproject.toml | 14 ++------------ cuda_bindings/setup.py | 5 ----- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/cuda_bindings/pyproject.toml b/cuda_bindings/pyproject.toml index f4c9c5bc..4a405c32 100644 --- a/cuda_bindings/pyproject.toml +++ b/cuda_bindings/pyproject.toml @@ -36,18 +36,8 @@ dependencies = [ Repository = "https://github.com/NVIDIA/cuda-python" Documentation = "https://nvidia.github.io/cuda-python/" -# BETA -# [tool.setuptools] -# zip-safe = false - -# BETA -# [tool.setuptools.packages.find] -# where = ["cuda"] -# include = ["cuda", "cuda.*"] - -# BETA -# [tool.setuptools.package-data] -# "*" = ["*.pxd", "*.pyx", "*.h", "*.cpp"] +[tool.setuptools.packages.find] +include = ["cuda.bindings*"] [tool.versioneer] VCS = "git" diff --git a/cuda_bindings/setup.py b/cuda_bindings/setup.py index 5c2f7651..2342e62a 100644 --- a/cuda_bindings/setup.py +++ b/cuda_bindings/setup.py @@ -302,11 +302,6 @@ def finalize_options(self): setup( version=versioneer.get_version(), ext_modules=do_cythonize(extensions), - packages=find_packages(include=["cuda", "cuda.*", "cuda.bindings", "cuda.bindings._bindings", "cuda.bindings._lib", "cuda.bindings._lib.cyruntime", "cuda.bindings._internal"]), - package_data=dict.fromkeys( - find_packages(include=["cuda", "cuda.*", "cuda.bindings", "cuda.bindings._bindings", "cuda.bindings._lib", "cuda.bindings._lib.cyruntime", "cuda.bindings._internal"]), - ["*.pxd", "*.pyx", "*.py", "*.h", "*.cpp"], - ), cmdclass=cmdclass, zip_safe=False, )