Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
2d4978a5
Unverified
Commit
2d4978a5
authored
Nov 22, 2025
by
yihong
Committed by
GitHub
Nov 22, 2025
Browse files
fix: clean up function never use in setup.py (#29061)
Signed-off-by:
yihong0618
<
zouzou0208@gmail.com
>
parent
6965a392
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
setup.py
setup.py
+0
-34
No files found.
setup.py
View file @
2d4978a5
...
@@ -74,18 +74,6 @@ def is_ninja_available() -> bool:
...
@@ -74,18 +74,6 @@ def is_ninja_available() -> bool:
return
which
(
"ninja"
)
is
not
None
return
which
(
"ninja"
)
is
not
None
def
is_url_available
(
url
:
str
)
->
bool
:
from
urllib.request
import
urlopen
status
=
None
try
:
with
urlopen
(
url
)
as
f
:
status
=
f
.
status
except
Exception
:
return
False
return
status
==
200
class
CMakeExtension
(
Extension
):
class
CMakeExtension
(
Extension
):
def
__init__
(
self
,
name
:
str
,
cmake_lists_dir
:
str
=
"."
,
**
kwa
)
->
None
:
def
__init__
(
self
,
name
:
str
,
cmake_lists_dir
:
str
=
"."
,
**
kwa
)
->
None
:
super
().
__init__
(
name
,
sources
=
[],
py_limited_api
=
True
,
**
kwa
)
super
().
__init__
(
name
,
sources
=
[],
py_limited_api
=
True
,
**
kwa
)
...
@@ -533,28 +521,6 @@ def get_nvcc_cuda_version() -> Version:
...
@@ -533,28 +521,6 @@ def get_nvcc_cuda_version() -> Version:
return
nvcc_cuda_version
return
nvcc_cuda_version
def
get_gaudi_sw_version
():
"""
Returns the driver version.
"""
# Enable console printing for `hl-smi` check
output
=
subprocess
.
run
(
"hl-smi"
,
shell
=
True
,
text
=
True
,
capture_output
=
True
,
env
=
{
"ENABLE_CONSOLE"
:
"true"
},
)
if
output
.
returncode
==
0
and
output
.
stdout
:
return
(
output
.
stdout
.
split
(
"
\n
"
)[
2
]
.
replace
(
" "
,
""
)
.
split
(
":"
)[
1
][:
-
1
]
.
split
(
"-"
)[
0
]
)
return
"0.0.0"
# when hl-smi is not available
def
get_vllm_version
()
->
str
:
def
get_vllm_version
()
->
str
:
# Allow overriding the version. This is useful to build platform-specific
# Allow overriding the version. This is useful to build platform-specific
# wheels (e.g. CPU, TPU) without modifying the source.
# wheels (e.g. CPU, TPU) without modifying the source.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment