-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (64 loc) · 1.99 KB
/
pyproject.toml
File metadata and controls
79 lines (64 loc) · 1.99 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[project]
name = "libggml-python"
dynamic = ["version"]
description = "Prebuilt ggml libraries"
authors = [
{ name = "benniekiss" }
]
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
[project.urls]
Source = "https://github.com/benniekiss/libggml-python"
Tracker = "https://github.com/benniekiss/libggml-python/issues"
Upstream = "https://github.com/ggml-org/ggml"
[build-system]
requires = [
"scikit-build-core>=0.11.5",
"setuptools-scm>=8",
]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
minimum-version = "build-system.requires"
cmake.build-type = "Release"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
wheel.packages = ["src/libggml"]
wheel.install-dir = "libggml"
sdist.include = ["ggml/", "src/libggml/_version.py"]
[tool.scikit-build.cmake.define]
CMAKE_RUNTIME_OUTPUT_DIRECTORY = "build"
GGML_OPENMP = "OFF"
GGML_VULKAN = "OFF"
GGML_CUDA = "OFF"
[[tool.scikit-build.overrides]]
if.env.USE_VULKAN = true
inherit.cmake.define = "append"
cmake.define.GGML_VULKAN = "1"
[[tool.scikit-build.overrides]]
if.env.USE_CUDA = true
inherit.cmake.define = "append"
cmake.define.GGML_CUDA = "1"
[[tool.scikit-build.overrides]]
if.env.USE_OPENMP = true
inherit.cmake.define = "append"
cmake.define.GGML_OPENMP = "1"
[project.entry-points."cmake.root"]
ggml = "libggml"
[project.entry-points."cmake.prefix"]
ggml = "libggml"
[tool.setuptools_scm]
write_to = "src/libggml/_version.py"
[tool.cibuildwheel]
# skip 32bit builds
skip = ["*-win32", "*-manylinux_i686"]
[tool.cibuildwheel.linux]
repair-wheel-command = "auditwheel repair --exclude libggml* -w {dest_dir} {wheel}"
[tool.cibuildwheel.macos]
repair-wheel-command = "delocate-wheel --exclude libggml* --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
[tool.cibuildwheel.windows]
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair --ignore-existing -w {dest_dir} {wheel}"
[tool.uv]
managed = true
required-version = "~=0.10.0"
index-url = "https://pypi.org/simple/"