cibuildwheel VS auditwheel

Compare cibuildwheel vs auditwheel and see what are their differences.

auditwheel

Auditing and relabeling cross-distribution Linux wheels. (by pypa)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
cibuildwheel auditwheel
8 3
1,726 413
1.4% 1.0%
9.3 7.5
5 days ago 18 days ago
Python Python
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cibuildwheel

Posts with mentions or reviews of cibuildwheel. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-19.
  • Balm in GILead: Fast string construction for CPython extensions
    1 project | news.ycombinator.com | 17 Dec 2023
    It doesn't work with any version of the public API, Limited, Stable, or Unstable, because this is not a part of the API. It's more of an application of [Hyrum's Law](https://www.hyrumslaw.com/).

    That said, assuming the structures themselves exist on the versions of Python you're targeting in a format compatible with whatever hacking you're doing on them, it's very easy to compile for lots of Python versions using [cibuildwheel](https://github.com/pypa/cibuildwheel) and the rest of the PyPA ecosystem.

    I don't think the Limited API is very useful, as a practical matter for the common distribution methods you need the wheel to be built with the target Python version.

  • Rip – Rust crate to resolve and install Python packages
    4 projects | news.ycombinator.com | 19 Oct 2023
    pypa/cibuildwheel: https://github.com/pypa/cibuildwheel :

    > Example setup: To build manylinux, musllinux, macOS, and Windows wheels on GitHub Actions, you could use this .github/workflows/wheels.yml

  • Bundling binary tools in Python wheels
    6 projects | news.ycombinator.com | 17 Jun 2022
    > size of wheels you can upload is constrained by PyPi

    I feel PyPi is pretty generous with their limits. You can even request more once you hit the ceiling, i think it’s around 60MB [1]. There are some wheels that are crazy large, tensorflow-gpu [2] are around 500MB each. I think there’s discussions out there to try and find ways of alleviating this problem on PyPi.

    > difficult to support multiple versions across multiple operating systems, unless you provide a source distribution, which is then…

    This can be a problem but I’ve found that recently the problem has improved quite a lot. You can create manylinux wheels for both x86, x64, and arm64 which cover pretty a lot of the Linux distributions using glibc. A musllinux tag was recently added to cover musl based distributions like Alpine. MacOS wheels support both x64, arm64, and can even be a universal2 wheel. Windows is still purely x86 or x64 for now but I’ve seen some people work on arm64 support support in CPython and once that’s in I’m sure PyPi won’t be too far around. There are also some great tools like cibuildwheel [3] that make building and testing these wheels pretty simple.

    > Still a nightmare on Windows

    I’m actually curious what is a nightmare about Windows. I found that Windows is probably the easiest of all the platforms to build and upload wheels for. You aren’t limited to a tiny subset of system libs, like you are on Linux, and building them is mostly the same process. Probably the hardest thing is ensuring you have tue correct vs build kit installed but that’s not insurmountable.

    [1] https://pypi.org/help/#file-size-limit

    [2] https://pypi.org/project/tensorflow-gpu/#files

    [3] https://github.com/pypa/cibuildwheel

  • cibuildwheel added support for building wheels on CPython 3.11
    1 project | /r/Python | 30 May 2022
  • Using GitHub Action to Build Python Wheel Package for Dynamsoft C++ Barcode SDK
    3 projects | dev.to | 26 May 2022
    Click set up a workflow yourself to create a custom workflow. We can refer to the examples provided by cibuildwheel.
  • Cibuildwheel: Build Python wheels for all the platforms on CI
    1 project | news.ycombinator.com | 9 Mar 2022
  • 🎡 cibuildwheel: Build Python wheels for 55 different platform/CPU/ABI combinations with minimal configuration
    2 projects | /r/Python | 1 Feb 2022

auditwheel

Posts with mentions or reviews of auditwheel. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-14.
  • Truly portable executables written in python in 2023
    2 projects | /r/learnprogramming | 14 Nov 2023
    Hi there! I've recently spent a lot of time figuring out how to distribute tools written in Python as standalone, self-contained executables, that will works on most of the linux distribution without special environment (including python itself). Decided to write this post to share and discuss my approach. I'd be grateful for any feedback and help on that topic! Here are a few simple steps I've come up with to make this trick: 1) This first is very obvious - use special tooling that can make such an executable, like Nuitka, Pyoxidizer, PyInstaller, python-appimage, etc. 2) Build your application against old enough glibc. You can do this using some old Linux distribution or just be setting up such toolchain manually. Its matters for c extensions, tools like nuitka/pyoxidizer and the python itself. 3) Last but not least - don't forget about dependencies and the dependencies of your dependencies. All Python wheels should have either an `any` [platform tag](https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/) or one of the [manylinux](https://peps.python.org/pep-0600/) tags that suits your requirements. You can check tags and repair the bad ones with [auditwheel](https://github.com/pypa/auditwheel). But fortunately, in the last 5-10 years, most of the mainstream packages have received manylinux wheels. Of course, there will be issues with PyOxidizer/Nuitka/pyinstaller/etc pitfalls, especially with big projects, so you need some e2e tests in every Linux you want to support. For educational purposes, I made [this little repo](https://github.com/asapelkin/overpackaged). It includes: 1) A sample app with bad dependencies and a C extension. 2) A script to create a 'wheelhouse' with compatible wheels only (`manylinux*` and `any`). 3) Scripts to build executables using Nuitka, PyOxidizer, Appimage, pex. 4) Portability tests (run executables in different linux distros) and performance benchmarks. 5) Readme and Makefile to run any step with single command. It's obviously not a very useful repo, but at least it helped me to explore this topic a little, maybe it could help to demonstrate my approach to the topic.
  • Bundling binary tools in Python wheels
    6 projects | news.ycombinator.com | 17 Jun 2022
    In a similar vein: Python projects can use `auditwheel` to automatically relocate (fixup RPATHs) and vendor their "system" dependencies, such as a specific version of `zlib` or `libffi`[1].

    [1]: https://github.com/pypa/auditwheel

  • Is there an in-depth description of packaging python dependencies?
    4 projects | /r/learnpython | 11 Apr 2021
    I was using manylinux as it was suggested by its example and it gathered the libraries via auditwheel and included them into the package. Up to my knowledge, there is no way to exclude libraries from the package, because it cannot have external dependencies apart from the predefined list of libraries. The linux_*.whl tags cannot be used on PyPI for binary packages.

What are some alternatives?

When comparing cibuildwheel and auditwheel you can also consider the following projects:

tox - Command line driven CI frontend and development task automation tool.

manylinux - Python wheels that work on any linux (almost)

twisted-iocpsupport - `twisted-iocpsupport` is an extension module for the Twisted `iocp` reactor to use the Windows I/O Completion Ports (IOCP) networking API. You should not need to install it directly or interact with its API; it is a dependency of Twisted on Windows platforms.

python-manylinux-demo - Demo project for building Python wheels for Linux with Travis-CI

releasezri - Meaningful and minimalist release notes for developers

sigstore-python - A Sigstore client for Python

twine - Utilities for interacting with PyPI

postgresql-wheel - A Python wheel containing PostgreSQL

easierlog - The easy way to inspect variables in Python.

overpackaged - Demo project to demonstrate different ways to create standalone selfcontained app in python

rattler - Rust crates to work with the Conda ecosystem.

megalinter - 🦙 MegaLinter analyzes 50 languages, 22 formats, 21 tooling formats, excessive copy-pastes, spelling mistakes and security issues in your repository sources with a GitHub Action, other CI tools or locally.