diff --git a/cuda_bindings/pyproject.toml b/cuda_bindings/pyproject.toml index 4b02aaa225..f851af87c9 100644 --- a/cuda_bindings/pyproject.toml +++ b/cuda_bindings/pyproject.toml @@ -56,6 +56,9 @@ Documentation = "https://nvidia.github.io/cuda-python/" [tool.setuptools.packages.find] include = ["cuda*"] +[tool.setuptools.exclude-package-data] +"*" = ["*.cpp"] + [tool.setuptools.dynamic] readme = { file = ["DESCRIPTION.rst"], content-type = "text/x-rst" } diff --git a/cuda_bindings/setup.py b/cuda_bindings/setup.py index bfa1ae7826..5b53ad0b1e 100644 --- a/cuda_bindings/setup.py +++ b/cuda_bindings/setup.py @@ -356,6 +356,7 @@ def do_cythonize(extensions): return cythonize( extensions, nthreads=nthreads, + build_dir="build/cython", compiler_directives=compiler_directives, **extra_cythonize_kwargs, ) diff --git a/cuda_core/build_hooks.py b/cuda_core/build_hooks.py index 4b1781b52d..5d615ad003 100644 --- a/cuda_core/build_hooks.py +++ b/cuda_core/build_hooks.py @@ -163,6 +163,7 @@ def get_sources(mod_name): ext_modules, verbose=True, language_level=3, + build_dir="build/cython", nthreads=nthreads, compiler_directives=compiler_directives, compile_time_env=compile_time_env,