Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ repos:
hooks:
- id: pyupgrade
args: [--py311-plus]
language_version: python3.11
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion packages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ apt_requires =
wget
brew_requires = wget
custom_prebuild = prebuild/librdkafka v2.8.0
python_versions = <3.14
[confluent-kafka==2.12.2]
apt_requires =
patch
Expand Down Expand Up @@ -2108,6 +2107,7 @@ python_versions = <3.14
[sentry-arroyo==2.37.1]
[sentry-arroyo==2.38.0]
[sentry-arroyo==2.38.1]
[sentry-arroyo==2.38.2]

[sentry-cli==2.14.3]
[sentry-cli==2.14.4]
Expand Down
23 changes: 14 additions & 9 deletions prebuild/librdkafka
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ from __future__ import annotations
import argparse
import os
import subprocess
import sys
import tempfile


Expand Down Expand Up @@ -34,15 +35,19 @@ def main() -> int:

# https://github.com/confluentinc/confluent-kafka-python/blob/cdc5f3b6b5d32c4b9f97ee4f648ad64857fb8223/tools/bootstrap-librdkafka.sh#L42
print("configuring...")
subprocess.check_call(
(
"./configure",
"--enable-static",
"--install-deps",
f"--prefix={args.prefix}",
),
cwd=tmpdir,
)
configure_args = [
"./configure",
"--enable-static",
"--install-deps",
]
# on Linux, use only bundled source deps to avoid picking up system
# GSSAPI/Kerberos which auditwheel won't bundle (undefined symbol at
# import time). on macOS, system deps are fine: GSSAPI is always
# available as a system framework, and bundled deps fail with Xcode 16.
if sys.platform == "linux":
configure_args.append("--source-deps-only")
configure_args.append(f"--prefix={args.prefix}")
subprocess.check_call(configure_args, cwd=tmpdir)

print("building...")
subprocess.check_call(("make", "-j", "-C", "src"), cwd=tmpdir)
Expand Down
Loading