forked from NVIDIA/cuda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
23 lines (20 loc) · 702 Bytes
/
setup.py
File metadata and controls
23 lines (20 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
#
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
from setuptools import setup
# We want to keep the version in sync with cuda.bindings, but setuptools would not let
# us to refer to any files outside of the project root, so we have to employ our own
# run-time lookup using setup()...
with open("../cuda_bindings/cuda/bindings/_version.py") as f:
exec(f.read())
version = __version__ # noqa: F821
del __version__ # noqa: F821
setup(
version=version,
install_requires=[
f"cuda-bindings~={version}",
],
extras_require={
"all": [f"cuda-bindings[all]~={version}"],
},
)