11# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22# SPDX-License-Identifier: Apache-2.0
33
4- """Check pixi cu13 cuda-version pins track ci/versions.yml (cuda.build.version)."""
4+ """Check pixi cuda-version pins track ci/versions.yml (cuda.build.version)."""
55
66from __future__ import annotations
77
1717
1818
1919def main () -> int :
20- """Verify cuda_bindings/cuda_core pixi cu13 pins match ci/versions.yml."""
20+ """Verify cuda_bindings/cuda_core pixi pins match ci/versions.yml."""
2121 if not VERSIONS_FILE_PATH .is_file ():
2222 print (f"error: { VERSIONS_FILE_PATH } not found" , file = sys .stderr )
2323 return 2
@@ -29,6 +29,8 @@ def main() -> int:
2929
3030 major , minor , * _ = build_version .split ("." )
3131 expected = f"{ major } .{ minor } .*"
32+ cuda_feature = f"cu{ major } "
33+
3234 errors : list [str ] = []
3335 for path in PIXI_FILES :
3436 if not path .is_file ():
@@ -39,7 +41,7 @@ def main() -> int:
3941 rel = path .relative_to (ROOT )
4042 try :
4143 variants = data ["workspace" ]["build-variants" ]["cuda-version" ]
42- cu13 = data ["feature" ]["cu13" ]["dependencies" ]["cuda-version" ]
44+ cuda_pin = data ["feature" ][cuda_feature ]["dependencies" ]["cuda-version" ]
4345 except KeyError as exc :
4446 print (f"error: { rel } missing cuda-version key: { exc } " , file = sys .stderr )
4547 return 2
@@ -49,9 +51,9 @@ def main() -> int:
4951 f"does not include { expected !r} "
5052 f"(from ci/versions.yml cuda.build.version={ build_version !r} )"
5153 )
52- if cu13 != expected :
54+ if cuda_pin != expected :
5355 errors .append (
54- f"{ rel } : [feature.cu13 .dependencies] cuda-version={ cu13 !r} "
56+ f"{ rel } : [feature.{ cuda_feature } .dependencies] cuda-version={ cuda_pin !r} "
5557 f"!= { expected !r} "
5658 f"(from ci/versions.yml cuda.build.version={ build_version !r} )"
5759 )
0 commit comments