-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpyproject.toml
More file actions
42 lines (35 loc) · 1.1 KB
/
pyproject.toml
File metadata and controls
42 lines (35 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[build-system]
requires = ["scikit-build-core>=0.9"]
build-backend = "scikit_build_core.build"
[project]
name = "dingofs"
version = "0.1.0"
description = "Python SDK for DingoFS distributed filesystem"
readme = "sdk/python/README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.9"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: C++",
"Operating System :: POSIX :: Linux",
]
[tool.scikit-build]
cmake.build-type = "Release"
# 只开启 Python 绑定,关闭其余不需要的目标
cmake.args = [
"-DBUILD_PYTHON_BINDINGS=ON",
"-DBUILD_UNIT_TESTS=OFF",
"-DBUILD_INTEGRATION_TESTS=OFF",
"-DDINGOFS_BUILD_SDK=OFF",
]
# Python 包源码在 python/dingofs/,wheel 内导入路径为 dingofs
wheel.packages = ["sdk/python/dingofs"]
build-dir = "build/{wheel_tag}"
[tool.cibuildwheel]
before-build = "rm -rf {project}/build"
build = "*-manylinux*"
skip = "*-musllinux* pp*"
manylinux-x86_64-image = "dingodatabase/dingo-eureka:manylinux_2_34-fs"
[tool.cibuildwheel.linux]
archs = ["x86_64"]