Skip to content

Commit f953ab3

Browse files
authored
Merge pull request #220 from vzhurba01/patch-12.6.2-windows
Use pyproject for auto discovery of packages and data
2 parents 930e77b + 167b468 commit f953ab3

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
@@ -302,11 +302,6 @@ def finalize_options(self):
302302
setup(
303303
version=versioneer.get_version(),
304304
ext_modules=do_cythonize(extensions),
305-
packages=find_packages(include=["cuda", "cuda.*", "cuda.bindings", "cuda.bindings._bindings", "cuda.bindings._lib", "cuda.bindings._lib.cyruntime", "cuda.bindings._internal"]),
306-
package_data=dict.fromkeys(
307-
find_packages(include=["cuda", "cuda.*", "cuda.bindings", "cuda.bindings._bindings", "cuda.bindings._lib", "cuda.bindings._lib.cyruntime", "cuda.bindings._internal"]),
308-
["*.pxd", "*.pyx", "*.py", "*.h", "*.cpp"],
309-
),
310305
cmdclass=cmdclass,
311306
zip_safe=False,
312307
)

0 commit comments

Comments
 (0)