Skip to content

[UAMQP] Alpine Linux Wheels Using cibuildwheel #352

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
20 changes: 17 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,26 @@ If you are running a Linux distro that does not support `ManyLinux1 <https://www
$ apt-get install -y build-essential libssl-dev uuid-dev cmake libcurl4-openssl-dev pkg-config python3-dev python3-pip
$ pip3 install uamqp --no-binary :all:

If you are running Alpine, you can install from source:
If you are running Alpine, you can build a wheel using `cibuildwheel <https://cibuildwheel.readthedocs.io/en/stable/>`__:

.. code:: shell

$ apk add --update python3 py-pip python3-dev cmake gcc g++ openssl-dev build-base
$ pip3 install uamqp --no-binary :all:
$ git clone https://github.com/Azure/azure-uamqp-python.git


1. Open pyproject.toml and make the following changes
a. Under [tool.cibuildwheel]
i. Change skip = ["*-musllinux*", "pp*"] to skip = ["manylinux*","pp*"]
ii. If you want to build for a specific python version for ex. py39, add this line right after the line above build = "cp39-musllinux_x86_64". By default wheels for all supported python versions will be built. For more information check the `options <https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip>`__

2. install cibuildwheel and run it to generate a wheel in the wheelhouse folder.

.. code:: shell

$ pip install cibuildwheel
$ cibuildwheel --platform linux



If you are running Red Hat, you can install from source:

Expand Down