PyConES 2023

Laszlo Kiss Kollar

Laszlo works at Bloomberg in the Python Infrastructure team, where he helps around 4000 Python developers ship Python libraries and applications. He is a PyPA member and a maintainer of the auditwheel and manylinux projects.


Otro enlace (e.g. GitHub)

https://github.com/lkollar


Session

07/10
14:30
35minutos
The wheelhouse of horrors
Laszlo Kiss Kollar

You might be surprised to learn that, besides naming and cache invalidation problems, building a binary wheel for a Python extension is one of the hardest problems in computer science. Or more precisely, building that binary wheel correctly. Lucky for us, a few amazing community-led projects hide all that complexity from us, so we can instead focus on shipping and using Python code.

One of Python's strong suits is its ability to use native C and C++ code, which is a big reason why it’s the number one language for date science and machine learning applications. However, distributing native code in Python libraries is far from trivial: subtle issues in the build process can result in runtime issues that are extremely difficult to track down.

This talk will showcase some notable examples of how things can go wrong, while also helping users and maintainers recognise these typical error scenarios. We will learn how to avoid these issues and what users can do when they encounter such issues when using a library.

The audience will learn about the manylinux standard and its role in standardizing Linux platform wheels. We will also take a look at the cibuildwheel project, which offers library authors a simple solution to automate the building and distribution of manylinux wheels.

Software packages
Antequera (Sala 1.10)