Skip to content

Commit

Permalink
feat(dev): On Apple arm64 install Sentry-hosted confluent-kafka wheel
Browse files Browse the repository at this point in the history
There's no `arm64` wheel for confluent-kafka, thus, it needs to be built as part of the `pip install` step.
Instead of waiting for official support, I've uploaded the wheel I produced into a GC bucket.

Alternatively, we would automate a convoluted build process (see [issue][upstream] for details).

Fixes #28429.

[upstream]: confluentinc/confluent-kafka-python#1190
  • Loading branch information
armenzg committed Oct 6, 2021
1 parent d6b4c44 commit aa35528
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ install-py-dev() {
# This installs pyscopg-binary2 since there's no arm64 wheel
# This saves having to install postgresql on the Developer's machine + using flags
# https://github.com/psycopg/psycopg2/issues/1286
pip install "https://storage.googleapis.com/python-arm64-wheels/psycopg2_binary-2.8.6-cp38-cp38-macosx_11_0_arm64.whl"
pip install https://storage.googleapis.com/python-arm64-wheels/confluent_kafka-1.5.0-cp38-cp38-macosx_11_0_arm64.whl
# This install confluent-kafka from our GC storage since there's no arm64 wheel
# https://github.com/confluentinc/confluent-kafka-python/issues/1190
pip install https://storage.googleapis.com/python-arm64-wheels/confluent_kafka-1.5.0-cp38-cp38-macosx_11_0_arm64.whl
fi
# SENTRY_LIGHT_BUILD=1 disables webpacking during setup.py.
# Webpacked assets are only necessary for devserver (which does it lazily anyways)
Expand Down

0 comments on commit aa35528

Please sign in to comment.