Skip to content

Commit 6892ae0

Browse files
committed
build: replace inline docstring with reference to issue #1824
Made-with: Cursor
1 parent 73e840e commit 6892ae0

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

cuda_bindings/build_hooks.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@
3737
def _import_get_cuda_path_or_home():
3838
"""Import get_cuda_path_or_home, working around PEP 517 namespace shadowing.
3939
40-
In isolated build environments, backend-path=["."] causes the ``cuda``
41-
namespace package to resolve to only the project's ``cuda/`` directory,
42-
hiding ``cuda.pathfinder`` installed in the build-env's site-packages.
43-
Fix by replacing ``cuda.__path__`` with a plain list that includes the
44-
site-packages ``cuda/`` directory.
40+
See https://github.com/NVIDIA/cuda-python/issues/1824 for why this helper is needed.
4541
"""
4642
try:
4743
import cuda.pathfinder

cuda_core/build_hooks.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@
3232
def _import_get_cuda_path_or_home():
3333
"""Import get_cuda_path_or_home, working around PEP 517 namespace shadowing.
3434
35-
In isolated build environments, backend-path=["."] causes the ``cuda``
36-
namespace package to resolve to only the project's ``cuda/`` directory,
37-
hiding ``cuda.pathfinder`` installed in the build-env's site-packages.
38-
Fix by replacing ``cuda.__path__`` with a plain list that includes the
39-
site-packages ``cuda/`` directory.
35+
See https://github.com/NVIDIA/cuda-python/issues/1824 for why this helper is needed.
4036
"""
4137
try:
4238
import cuda.pathfinder

0 commit comments

Comments
 (0)