Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dev): On Apple arm64 install hosted confluent-kafka wheel #29013

Merged
merged 7 commits into from
Oct 12, 2021

Conversation

armenzg
Copy link
Member

@armenzg armenzg commented Oct 1, 2021

There's no arm64 wheel for confluent-kafka, thus, we need to build our own and install it from there.

Alternatively, we would have to automate a convoluted build work around (see issue1 for details).

Fixes #28429.

Footnotes

  1. https://github.com/confluentinc/confluent-kafka-python/issues/1190

@armenzg armenzg force-pushed the armenzg/dev/confluent-kafka-apple-m1 branch from a5cab19 to 768490f Compare October 1, 2021 14:05
@armenzg armenzg mentioned this pull request Oct 1, 2021
12 tasks
@armenzg armenzg changed the base branch from master to armenzg/dev/downgrade-psycopg2-binary October 1, 2021 15:38
@armenzg armenzg force-pushed the armenzg/dev/downgrade-psycopg2-binary branch from 81f6a76 to d6b4c44 Compare October 6, 2021 19:13
@armenzg armenzg self-assigned this Oct 6, 2021
@armenzg armenzg added the Component: Developer Environment This covers issues related to setting up a developer's environment label Oct 6, 2021
@armenzg armenzg force-pushed the armenzg/dev/confluent-kafka-apple-m1 branch from 5f60817 to 1c6097f Compare October 6, 2021 19:29
@armenzg armenzg force-pushed the armenzg/dev/confluent-kafka-apple-m1 branch from 1c6097f to aa35528 Compare October 6, 2021 19:56
Fixes regression introduced in #29058.

On Big Sur, we cannot install Python 3.6.x without patching the source code first.
For the incompatibility issue with Django visit [this issue][incompatible],

In this PR, we're going to downgrade to the compatible 2.8.6 version (thus, matching
the Python 3.6 version), removing the need to install `postgresql` (this means partially
reverting #28607) and instead installing a wheel I built on my machine that I have stored
in GC storage.

Fixes #28958

[incompatible]: psycopg/psycopg2#1293
@armenzg armenzg force-pushed the armenzg/dev/downgrade-psycopg2-binary branch from d6b4c44 to 37e4c49 Compare October 7, 2021 14:13
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
@armenzg armenzg changed the title feat(dev): On Apple M1 install custom confluent-kafka feat(dev): On Apple arm64 install hosted confluent-kafka wheel Oct 7, 2021
@armenzg armenzg marked this pull request as ready for review October 7, 2021 14:37
@armenzg armenzg requested a review from a team as a code owner October 7, 2021 14:37
@armenzg armenzg requested a review from joshuarli October 7, 2021 14:37
Base automatically changed from armenzg/dev/downgrade-psycopg2-binary to armenzg/devenv/fix-pyenv-on-intel October 7, 2021 20:44
@joshuarli joshuarli requested a review from a team as a code owner October 7, 2021 20:44
Base automatically changed from armenzg/devenv/fix-pyenv-on-intel to master October 7, 2021 22:04
@armenzg armenzg merged commit a76bf5c into master Oct 12, 2021
@armenzg armenzg deleted the armenzg/dev/confluent-kafka-apple-m1 branch October 12, 2021 16:52
@github-actions github-actions bot locked and limited conversation to collaborators Oct 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: Developer Environment This covers issues related to setting up a developer's environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

confluent-kafka does not install on Apple's M1 chipset
2 participants