Giter Club home page Giter Club logo

grpcio-mac-arm-build's Introduction

grpcio Python binary wheels for Apple Silicon

๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ป GitHub Actions workflow: .github/workflows/wheels.yml

This repo provides daily builds of binary wheels for the Python grpcio and grpcio-tools libraries, for the Apple Silicon architecture.

A GitHub actions workflow checks every day if there is a new grpcio release. If that is the case, it builds the binaries and uploads them in a new release.

๐Ÿ“ฆ Releases

Motivation

Currently (version 1.48.1), grpcio and grpcio-tools provides compiled binary wheels only for Intel Macs, not for Apple Silicon machines.

Google Cloud's client libraries for Python depend on grpcio, and without a binary release of grpcio it becomes hard to install them on a local development environment.

๐Ÿ˜ฐ Not having a binary wheel for grpcio severely impairs the developer experience of M1/M2 Mac users: when they do pip install grpcio, pip downloads for them the source tarball and attempts to compile the library.

Compiling grpcio on Mac is slow, and notoriously hard and, in my experience, users become frustrated after the 10th attempt with some combination of environment variables, dependencies, and compilation flags (brew install random stuff, LDFLAGS, CFLAGS, GRPC_PYTHON_BUILD_SYSTEM_OPENSSL, ...). A downloadable binary wheel would enable a much more pleasant user experience.

In this issue, I proposed a way to cross-compile grpcio from an Intel-based CI runner, using the amazing cibuildwheel tool.

This repo contains another example, that uses GitHub Actions.

Licensing

The grpc project is licensed under the Apache License 2.0, BSD 3-Clause License, and Mozilla Public License Version 2.0. You can find the updated license text at this link.

These binaries are provided by me personally and not endorsed by the original authors of the grpc library, nor the company I work for. The binaries are released under the same license terms of the original source code.

No guarantees of any sort are provided: use this software at your own risk!

grpcio-mac-arm-build's People

Contributors

pietrodn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.