fix: remove Chinese comments from code
- Replace all Chinese comments with English - Ensure code is internationalization-friendly
This commit is contained in:
@@ -19,7 +19,7 @@ dependencies = [
|
|||||||
wheel.exclude = ["CMakeLists.txt", "src", "third_party"]
|
wheel.exclude = ["CMakeLists.txt", "src", "third_party"]
|
||||||
sdist.include = ["CMakeLists.txt", "src", "third_party", "leann_backend_hnsw/*.txt"]
|
sdist.include = ["CMakeLists.txt", "src", "third_party", "leann_backend_hnsw/*.txt"]
|
||||||
cmake.args = ["-DCMAKE_BUILD_TYPE=Release"]
|
cmake.args = ["-DCMAKE_BUILD_TYPE=Release"]
|
||||||
# 确保 CMake 可以找到系统库
|
# Ensure CMake can find system libraries
|
||||||
build-dir = "build/{cache_tag}"
|
build-dir = "build/{cache_tag}"
|
||||||
minimum-version = "build-system.requires"
|
minimum-version = "build-system.requires"
|
||||||
|
|
||||||
|
|||||||
@@ -62,14 +62,14 @@ leann-backend-diskann = { path = "packages/leann-backend-diskann", editable = tr
|
|||||||
leann-backend-hnsw = { path = "packages/leann-backend-hnsw", editable = true }
|
leann-backend-hnsw = { path = "packages/leann-backend-hnsw", editable = true }
|
||||||
|
|
||||||
[tool.cibuildwheel]
|
[tool.cibuildwheel]
|
||||||
# 跳过32位和PyPy构建
|
# Skip 32-bit and PyPy builds
|
||||||
skip = "*-win32 *-manylinux_i686 pp* *musllinux*"
|
skip = "*-win32 *-manylinux_i686 pp* *musllinux*"
|
||||||
|
|
||||||
# 使用manylinux2014以获得最大兼容性(支持GLIBC 2.17)
|
# Use manylinux2014 for maximum compatibility (supports GLIBC 2.17)
|
||||||
manylinux-x86_64-image = "manylinux2014"
|
manylinux-x86_64-image = "manylinux2014"
|
||||||
manylinux-aarch64-image = "manylinux2014"
|
manylinux-aarch64-image = "manylinux2014"
|
||||||
|
|
||||||
# Linux系统依赖
|
# Linux system dependencies
|
||||||
[tool.cibuildwheel.linux]
|
[tool.cibuildwheel.linux]
|
||||||
before-all = """
|
before-all = """
|
||||||
yum install -y epel-release
|
yum install -y epel-release
|
||||||
@@ -77,12 +77,12 @@ before-all = """
|
|||||||
ln -sf /usr/bin/cmake3 /usr/bin/cmake
|
ln -sf /usr/bin/cmake3 /usr/bin/cmake
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# macOS系统依赖
|
# macOS system dependencies
|
||||||
[tool.cibuildwheel.macos]
|
[tool.cibuildwheel.macos]
|
||||||
before-all = "brew install boost zeromq openblas cmake libomp"
|
before-all = "brew install boost zeromq openblas cmake libomp"
|
||||||
# 设置macOS最小版本
|
# Set minimum macOS version
|
||||||
environment = { MACOSX_DEPLOYMENT_TARGET = "11.0", CMAKE_OSX_DEPLOYMENT_TARGET = "11.0" }
|
environment = { MACOSX_DEPLOYMENT_TARGET = "11.0", CMAKE_OSX_DEPLOYMENT_TARGET = "11.0" }
|
||||||
|
|
||||||
# 环境变量配置
|
# Environment variables configuration
|
||||||
[tool.cibuildwheel.environment]
|
[tool.cibuildwheel.environment]
|
||||||
CMAKE_BUILD_PARALLEL_LEVEL = "8"
|
CMAKE_BUILD_PARALLEL_LEVEL = "8"
|
||||||
|
|||||||
Reference in New Issue
Block a user