Skip to content

Commit 2928117

Browse files
rwgkmdboomcursoragent
authored
[cuda-pathfinder ] Honor site.ENABLE_USER_SITE in site-packages scan (#1596)
* Add cuda-pathfinder 1.3.4 release notes * Honor site.ENABLE_USER_SITE in site-packages scan Co-authored-by: Cursor <[email protected]> * Add release note for ENABLE_USER_SITE fix Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Michael Droettboom <[email protected]> Co-authored-by: Cursor <[email protected]>
1 parent c6cd193 commit 2928117

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

cuda_pathfinder/cuda/pathfinder/_utils/find_sub_dirs.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,9 @@ def find_sub_dirs_sys_path(sub_dirs: Sequence[str]) -> list[str]:
5050

5151

5252
def find_sub_dirs_all_sitepackages(sub_dirs: Sequence[str]) -> list[str]:
53-
return find_sub_dirs((site.getusersitepackages(), *site.getsitepackages()), sub_dirs)
53+
parent_dirs = list(site.getsitepackages())
54+
if site.ENABLE_USER_SITE:
55+
user_site = site.getusersitepackages()
56+
if user_site:
57+
parent_dirs.insert(0, user_site)
58+
return find_sub_dirs(parent_dirs, sub_dirs)

cuda_pathfinder/docs/nv-versions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "latest",
44
"url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/latest/"
55
},
6+
{
7+
"version": "1.3.4",
8+
"url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/1.3.4/"
9+
},
610
{
711
"version": "1.3.3",
812
"url": "https://nvidia.github.io/cuda-python/cuda-pathfinder/1.3.3/"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
.. SPDX-License-Identifier: Apache-2.0
3+
4+
.. py:currentmodule:: cuda.pathfinder
5+
6+
``cuda-pathfinder`` 1.3.4 Release notes
7+
=======================================
8+
9+
Released on Feb 11, 2026
10+
11+
Highlights
12+
----------
13+
14+
* Add support for locating CUDA binary utilities (e.g. ``nvcc``, ``nvdisasm``, etc.).
15+
(`PR #1528 <https://github.com/NVIDIA/cuda-python/pull/1528>`_)
16+
17+
* Introduce ``locate_nvidia_header_directory()`` and ``LocatedHeaderDir`` to
18+
report the header discovery method. This is an alternative API to
19+
the existing ``find_nvidia_header_directory()`` API that only returns the
20+
absolute path to the discovered header directory.
21+
(`PR #1536 <https://github.com/NVIDIA/cuda-python/pull/1536>`_)
22+
23+
* Honor ``site.ENABLE_USER_SITE`` before adding the user site-packages path
24+
to search locations.
25+
(`PR #1596 <https://github.com/NVIDIA/cuda-python/pull/1596>`_)

0 commit comments

Comments
 (0)