Skip to content

Commit

Permalink
chore: add configuration for cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Nov 6, 2024
1 parent 24eb37d commit 278f3fd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,17 @@ local_scheme = "no-local-version"
extend-exclude = ["endstone_python.pyi"]
line-length = 120
lint.extend-select = ["I"]

[tool.cibuildwheel]
skip = ["pp*"]
test-command = "pytest {package}/python/tests"
test-requires = "pytest"

[tool.cibuildwheel.linux]
manylinux-x86_64-image = "endstone/manylinux:manylinux_2_28_x86_64"
environment = { LLVM_VERSION = 15, CC = "/usr/bin/clang-${LLVM_VERSION}", CXX = "/usr/bin/clang++-${LLVM_VERSION}" }
before-all = [
"apt-get update -y -q && apt-get install -y -q build-essential lsb-release wget software-properties-common gnupg",
"wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh ${LLVM_VERSION}",
"apt-get install -y -q libc++-${LLVM_VERSION}-dev libc++abi-${LLVM_VERSION}-dev"
]

0 comments on commit 278f3fd

Please sign in to comment.