Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
7310aede
"...en/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "1fd647f2a0e97b3746a0a038a0b826f3c408422a"
Unverified
Commit
7310aede
authored
Dec 11, 2024
by
Yineng Zhang
Committed by
GitHub
Dec 11, 2024
Browse files
fix: compatible with PEP 440 (#2435)
parent
5de9a58e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sgl-kernel/setup.py
sgl-kernel/setup.py
+2
-2
No files found.
sgl-kernel/setup.py
View file @
7310aede
...
@@ -31,13 +31,13 @@ def rename_wheel():
...
@@ -31,13 +31,13 @@ def rename_wheel():
zip_ref
.
extractall
(
tmp_dir
)
zip_ref
.
extractall
(
tmp_dir
)
old_info
=
tmp_dir
/
f
"sgl_kernel-
{
base_version
}
.dist-info"
old_info
=
tmp_dir
/
f
"sgl_kernel-
{
base_version
}
.dist-info"
new_info
=
tmp_dir
/
f
"sgl_kernel-
{
base_version
}
+cu
{
cuda_version
}
.dist-info"
new_info
=
tmp_dir
/
f
"sgl_kernel-
{
base_version
}
.post0
+cu
{
cuda_version
}
.dist-info"
old_info
.
rename
(
new_info
)
old_info
.
rename
(
new_info
)
platform
=
"manylinux2014_x86_64"
platform
=
"manylinux2014_x86_64"
new_wheel
=
wheel_dir
/
old_wheel
.
name
.
replace
(
"linux_x86_64"
,
platform
)
new_wheel
=
wheel_dir
/
old_wheel
.
name
.
replace
(
"linux_x86_64"
,
platform
)
new_wheel
=
wheel_dir
/
new_wheel
.
name
.
replace
(
new_wheel
=
wheel_dir
/
new_wheel
.
name
.
replace
(
base_version
,
f
"
{
base_version
}
+cu
{
cuda_version
}
"
base_version
,
f
"
{
base_version
}
.post0
+cu
{
cuda_version
}
"
)
)
with
zipfile
.
ZipFile
(
new_wheel
,
"w"
,
zipfile
.
ZIP_DEFLATED
)
as
new_zip
:
with
zipfile
.
ZipFile
(
new_wheel
,
"w"
,
zipfile
.
ZIP_DEFLATED
)
as
new_zip
:
...
...
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