You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use _version.py import instead of importlib.metadata for cuda-bindings detection
Replace importlib.metadata.distribution() with direct import of
cuda.bindings._version module. The former may incorrectly return
the cuda-core distribution when queried for 'cuda-bindings' in
isolated build environments (tested with Python 3.12 and pip 25.3).
This may be due to cuda-core metadata being written during the
build process before cuda-bindings is fully available, causing
importlib.metadata to return the wrong distribution.
Also ensure cuda-bindings is always required in build environment
by returning ['cuda-bindings'] instead of [] when already installed.
This ensures pip makes it available in isolated build environments
even if installed elsewhere.
Fix import sorting inconsistency for _version import in cuda_pathfinder
by adding 'isort: skip' directive.
0 commit comments