Unverified Commit 5eae67cb authored by DavidChan's avatar DavidChan Committed by GitHub
Browse files

get the python version from env (#4729)

parent 6dbf9998
...@@ -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()}},
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment