Skip to content

Commit ccaf45f

Browse files
authored
Merge pull request #219 from vzhurba01/patch-11.8.5-windows
Use pyproject for auto discovery of packages and data
2 parents 965a695 + f23576b commit ccaf45f

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

cuda_bindings/pyproject.toml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,8 @@ dependencies = [
3636
Repository = "https://github.com/NVIDIA/cuda-python"
3737
Documentation = "https://nvidia.github.io/cuda-python/"
3838

39-
# BETA
40-
# [tool.setuptools]
41-
# zip-safe = false
42-
43-
# BETA
44-
# [tool.setuptools.packages.find]
45-
# where = ["cuda"]
46-
# include = ["cuda", "cuda.*"]
47-
48-
# BETA
49-
# [tool.setuptools.package-data]
50-
# "*" = ["*.pxd", "*.pyx", "*.h", "*.cpp"]
39+
[tool.setuptools.packages.find]
40+
include = ["cuda.bindings*"]
5141

5242
[tool.versioneer]
5343
VCS = "git"

cuda_bindings/setup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,6 @@ def finalize_options(self):
258258
setup(
259259
version=versioneer.get_version(),
260260
ext_modules=do_cythonize(extensions),
261-
packages=find_packages(include=["cuda", "cuda.*", "cuda.bindings", "cuda.bindings._bindings", "cuda.bindings._lib", "cuda.bindings._lib.cyruntime"]),
262-
package_data=dict.fromkeys(
263-
find_packages(include=["cuda", "cuda.*", "cuda.bindings", "cuda.bindings._bindings", "cuda.bindings._lib", "cuda.bindings._lib.cyruntime"]),
264-
["*.pxd", "*.pyx", "*.py", "*.h", "*.cpp"],
265-
),
266261
cmdclass=cmdclass,
267262
zip_safe=False,
268263
)

0 commit comments

Comments
 (0)