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
63137cd9
Unverified
Commit
63137cd9
authored
Mar 07, 2025
by
Isotr0py
Committed by
GitHub
Mar 06, 2025
Browse files
[Build] Add nightly wheel fallback when latest commit wheel unavailable (#14358)
Signed-off-by:
Isotr0py
<
2037008807@qq.com
>
parent
ddd1ef66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
setup.py
setup.py
+16
-0
No files found.
setup.py
View file @
63137cd9
...
...
@@ -69,6 +69,18 @@ def is_ninja_available() -> bool:
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
):
def
__init__
(
self
,
name
:
str
,
cmake_lists_dir
:
str
=
'.'
,
**
kwa
)
->
None
:
...
...
@@ -320,6 +332,10 @@ class repackage_wheel(build_ext):
if
wheel_location
is
None
:
base_commit
=
self
.
get_base_commit_in_main_branch
()
wheel_location
=
f
"https://wheels.vllm.ai/
{
base_commit
}
/vllm-1.0.0.dev-cp38-abi3-manylinux1_x86_64.whl"
# Fallback to nightly wheel if latest commit wheel is unavailable,
# in this rare case, the nightly release CI hasn't finished on main.
if
not
is_url_available
(
wheel_location
):
wheel_location
=
"https://wheels.vllm.ai/nightly/vllm-1.0.0.dev-cp38-abi3-manylinux1_x86_64.whl"
import
zipfile
...
...
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