File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737def _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
Original file line number Diff line number Diff line change 3232def _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
You can’t perform that action at this time.
0 commit comments