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
5eae67cb
".github/vscode:/vscode.git/clone" did not exist on "9e2804f7206bf0ff5b24c03196fb4831fa4f5c78"
Unverified
Commit
5eae67cb
authored
Mar 28, 2025
by
DavidChan
Committed by
GitHub
Mar 27, 2025
Browse files
get the python version from env (#4729)
parent
6dbf9998
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
sgl-kernel/setup.py
sgl-kernel/setup.py
+7
-1
No files found.
sgl-kernel/setup.py
View file @
5eae67cb
...
@@ -235,6 +235,12 @@ ext_modules = [
...
@@ -235,6 +235,12 @@ ext_modules = [
),
),
]
]
def
get_py_ver
():
major
,
minor
=
sys
.
version_info
[:
2
]
return
f
"cp
{
major
}{
minor
}
"
setup
(
setup
(
name
=
"sgl-kernel"
,
name
=
"sgl-kernel"
,
version
=
_get_version
(),
version
=
_get_version
(),
...
@@ -245,5 +251,5 @@ setup(
...
@@ -245,5 +251,5 @@ setup(
"build_ext"
:
BuildExtension
.
with_options
(
use_ninja
=
True
),
"build_ext"
:
BuildExtension
.
with_options
(
use_ninja
=
True
),
"build_py"
:
CustomBuildPy
,
"build_py"
:
CustomBuildPy
,
},
},
options
=
{
"bdist_wheel"
:
{
"py_limited_api"
:
"cp39"
}},
options
=
{
"bdist_wheel"
:
{
"py_limited_api"
:
get_py_ver
()
}},
)
)
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