File tree Expand file tree Collapse file tree 6 files changed +27
-7
lines changed
Expand file tree Collapse file tree 6 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33
4- recursive-include cuda/ *.pyx *.pxd *.pxi
4+ recursive-include cuda/ *.pyx *.pxd *.pxi *.pyx.in *.pxd.in *.pxi.in *.h
55# at least with setuptools 75.0.0 this folder was added erroneously
66# to the payload, causing file copying to the build environment failed
77exclude cuda/bindings cuda?bindings
Original file line number Diff line number Diff line change 1- .. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+ .. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33
44 .. module :: cuda.bindings
@@ -22,6 +22,13 @@ Bugfixes
2222 (`PR #1336 <https://github.com/NVIDIA/cuda-python/pull/1336 >`_)
2323* Fixed ABI incompatibility bugs in cuFILE bindings introduced in v13.1.0.
2424
25+ Miscellaneous
26+ -------------
27+
28+ * Wheel and installed package sizes significantly reduced (e.g., on a typical Linux x86_64
29+ build, wheel from ~16.6 MB to ~5.7 MB and installed from ~152 MB to ~23 MB) by excluding
30+ Cython source files, generated C++ files, and template files from distribution packages.
31+
2532Known issues
2633------------
2734
Original file line number Diff line number Diff line change @@ -56,8 +56,13 @@ Documentation = "https://nvidia.github.io/cuda-python/"
5656[tool .setuptools .packages .find ]
5757include = [" cuda*" ]
5858
59- [tool .setuptools .exclude-package-data ]
60- "*" = [" *.cpp" ]
59+ [tool .setuptools ]
60+ include-package-data = false
61+
62+ [tool .setuptools .package-data ]
63+ "*" = [" *.pxd" , " *.pxi" ]
64+ "cuda.bindings._bindings" = [" *.h" ]
65+ "cuda.bindings._lib" = [" *.h" ]
6166
6267[tool .setuptools .dynamic ]
6368readme = { file = [" DESCRIPTION.rst" ], content-type = " text/x-rst" }
Original file line number Diff line number Diff line change 44
55recursive-include cuda/core *.pyx *.pxd *.pxi
66recursive-include cuda/core/_cpp *.cpp *.hpp
7+ recursive-include cuda/core/_include *.h *.hpp
Original file line number Diff line number Diff line change 3636Fixes and enhancements
3737----------------------
3838
39- None.
39+ - Wheel and installed package sizes significantly reduced (e.g., on a typical Linux x86_64
40+ build, wheel from ~4.6 MB to ~1.6 MB and installed from ~26 MB to ~4.4 MB) by excluding
41+ Cython source files, generated C++ files, and other build artifacts from distribution
42+ packages.
Original file line number Diff line number Diff line change @@ -72,9 +72,13 @@ issues = "https://github.com/NVIDIA/cuda-python/issues/"
7272[tool .setuptools .packages .find ]
7373include = [" cuda.core*" ]
7474
75+ [tool .setuptools ]
76+ include-package-data = false
77+
7578[tool .setuptools .package-data ]
76- "cuda.core._include" = [" *.h" , " *.hpp" , " *.cuh" ]
77- "cuda.core._cpp" = [" *.cpp" , " *.hpp" ]
79+ "*" = [" *.pxd" ]
80+ "cuda.core._include" = [" *.h" , " *.hpp" ]
81+ "cuda.core._cpp" = [" *.hpp" ]
7882
7983[tool .setuptools .dynamic ]
8084readme = { file = [" DESCRIPTION.rst" ], content-type = " text/x-rst" }
You can’t perform that action at this time.
0 commit comments