File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ build-backend = "setuptools.build_meta"
8
8
9
9
[project ]
10
10
name = " cuda-python"
11
- version = " 12.6.3"
12
11
description = " CUDA Python: Performance meets Productivity"
13
12
readme = {file = " README.md" , content-type = " text/markdown" }
14
13
authors = [{
name =
" NVIDIA Corporation" ,
email =
" [email protected] " },]
@@ -33,9 +32,7 @@ classifiers = [
33
32
" Environment :: GPU :: NVIDIA CUDA" ,
34
33
" Environment :: GPU :: NVIDIA CUDA :: 12" ,
35
34
]
36
- dependencies = [
37
- " cuda-bindings~=12.6.3" ,
38
- ]
35
+ dynamic = [" version" , " dependencies" ]
39
36
40
37
[project .urls ]
41
38
homepage = " https://nvidia.github.io/cuda-python/"
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2
+ #
3
+ # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
4
+
5
+ from setuptools import setup
6
+
7
+ # We want to keep the version in sync with cuda.bindings, but setuptools would not let
8
+ # us to refer to any files outside of the project root, so we have to employ our own
9
+ # run-time lookup using setup()...
10
+ with open ("../cuda_bindings/cuda/bindings/_version.py" ) as f :
11
+ exec (f .read ())
12
+ version = __version__ # noqa: F821
13
+ del __version__ # noqa: F821
14
+
15
+ setup (
16
+ version = version ,
17
+ install_requires = [
18
+ f"cuda-bindings~={ version } " ,
19
+ ],
20
+ )
You can’t perform that action at this time.
0 commit comments