We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ace96 commit c7b6956Copy full SHA for c7b6956
cuda_python/setup.py
@@ -17,16 +17,24 @@
17
)
18
19
20
-version = Version(version).base_version
+base_version = Version(version).base_version
21
+
22
23
+if base_version == version:
24
+ # Tagged release
25
+ matcher = "~="
26
+else:
27
+ # Pre-release version
28
+ matcher = "=="
29
30
31
setup(
32
version=version,
33
install_requires=[
- f"cuda-bindings~={version}",
34
+ f"cuda-bindings{matcher}{version}",
35
"cuda-pathfinder~=1.1",
36
],
37
extras_require={
- "all": [f"cuda-bindings[all]~={version}"],
38
+ "all": [f"cuda-bindings[all]{matcher}{version}"],
39
},
40
0 commit comments