adjust import setuptools_rust (#10524)
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from setuptools_rust import Binding, RustExtension
|
|
||||||
|
|
||||||
no_rust = os.environ.get("SGLANG_ROUTER_BUILD_NO_RUST") == "1"
|
no_rust = os.environ.get("SGLANG_ROUTER_BUILD_NO_RUST") == "1"
|
||||||
|
|
||||||
rust_extensions = []
|
rust_extensions = []
|
||||||
if not no_rust:
|
if not no_rust:
|
||||||
|
from setuptools_rust import Binding, RustExtension
|
||||||
|
|
||||||
rust_extensions.append(
|
rust_extensions.append(
|
||||||
RustExtension(
|
RustExtension(
|
||||||
target="sglang_router_rs",
|
target="sglang_router_rs",
|
||||||
|
|||||||
Reference in New Issue
Block a user