[model-gateway] move python to binding folder (#13295)

This commit is contained in:
Simo Lin
2025-11-15 00:32:21 -08:00
committed by GitHub
parent 56fc483073
commit b732ffa404
28 changed files with 928 additions and 819 deletions

View File

@@ -0,0 +1,22 @@
import os
from setuptools import setup
no_rust = os.environ.get("SGLANG_ROUTER_BUILD_NO_RUST") == "1"
rust_extensions = []
if not no_rust:
from setuptools_rust import Binding, RustExtension
rust_extensions.append(
RustExtension(
target="sglang_router_rs",
path="Cargo.toml",
binding=Binding.PyO3,
)
)
setup(
rust_extensions=rust_extensions,
zip_safe=False,
)