Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (94 loc) · 3.12 KB
/
Copy pathpyproject.toml
File metadata and controls
102 lines (94 loc) · 3.12 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[project]
name = "lldb-python"
version = "19.1.5"
authors = [{ name = "Andrew Marshall", email = "planetmarshalluk@gmail.com" }]
description = "Unofficial self contained distribution of the LLDB Python Bindings"
readme = "README.md"
keywords = ["lldb", "debugger", "llvm"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Debuggers"
]
[project.urls]
Documentation = "https://lldb.llvm.org/python_api.html"
Repository = "https://github.com/planetmarshall/lldb-python"
[build-system]
requires = [
"conan",
"scikit-build-core",
"swig"
]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
build-dir = "build/{wheel_tag}"
logging.level = "INFO"
cmake.build-type = "Release"
cmake.source-dir = "llvm-project/llvm"
cmake.targets = ["liblldb", "lldb-server", "lldb-python-scripts"]
install.components = ["liblldb", "lldb-server", "lldb-python-scripts"]
wheel.packages = []
# LLDB generates its own prefix lib/python3.X/site_packages so install into
# the root of the wheel to avoid having to change the LLDB source
experimental = true
wheel.install-dir = "/data"
[tool.scikit-build.cmake.define]
CMAKE_C_COMPILER_LAUNCHER = "ccache"
CMAKE_CXX_COMPILER_LAUNCHER = "ccache"
CMAKE_PROJECT_TOP_LEVEL_INCLUDES = "conan_provider.cmake"
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "ON"
CONAN_HOST_PROFILE = { env = "CONAN_HOST_PROFILE", default = "default" }
LLVM_ENABLE_PROJECTS = "clang;lldb"
LLVM_TARGETS_TO_BUILD = { env = "SKBUILD_LLVM_TARGETS_TO_BUILD", default = "X86" }
LLVM_ENABLE_RUNTIMES = { env = "SKBUILD_LLVM_ENABLE_RUNTIMES", default = "" }
LLVM_RAM_PER_COMPILE_JOB = { env = "SKBUILD_LLVM_RAM_PER_COMPILE_JOB", default = "" }
LLVM_RAM_PER_LINK_JOB = { env = "SKBUILD_LLVM_RAM_PER_LINK_JOB", default = "" }
LLVM_INCLUDE_EXAMPLES = "OFF"
LLVM_ENABLE_ZLIB = "FORCE_ON"
LLVM_ENABLE_ZSTD = "FORCE_ON"
LLDB_SKIP_LINK_PYTHON = "ON"
LLDB_ENABLE_LUA = "OFF"
LLDB_ENABLE_PYTHON = "ON"
[tool.cibuildwheel]
archs = "native"
build-verbosity = 1
before-build = "./download-llvm.sh"
manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64"
test-requires = [
"pytest",
"cmake"
]
test-command = "pytest {project}/test"
[tool.cibuildwheel.linux]
environment.CONAN_HOME = "/host/tmp/conan"
environment.CCACHE_DIR = "/host/tmp/ccache"
environment.CCACHE_SLOPPINESS = "pch_defines,time_macros"
skip = "*-musllinux_*"
environment-pass = [
"CONAN_HOME",
"CONAN_HOST_PROFILE",
"CCACHE_DIR",
"SKBUILD_LLVM_RAM_PER_COMPILE_JOB",
"SKBUILD_LLVM_RAM_PER_LINK_JOB",
]
before-all = [
"yum install -y wget",
"./download-install-ccache.sh",
"ccache --version",
]
repair-wheel-command = [
"pip install patchelf wheel",
"python edit-wheel.py preprocess {wheel}",
"auditwheel repair -w {dest_dir} {wheel}",
"python edit-wheel.py postprocess {dest_dir}"
]
[tool.cibuildwheel.macos]
before-all = [
"brew install ccache"
]
repair-wheel-command = [
"pip install wheel",
"python edit-wheel.py preprocess {wheel}",
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
]