Skip to content

Commit

Permalink
feat(dev): On Apple arm64 install hosted confluent-kafka wheel (#29013)
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 authored Oct 12, 2021
1 parent f6e5df0 commit a76bf5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ install-py-dev() {
# 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
# 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 a76bf5c

Please sign in to comment.