Jean-Baptiste Aviat - Writing a C Python extension in 2017

Jean-Baptiste Aviat - Writing a C Python extension inĀ 2017

This talk describes the build of a C Python extension, with prebuilt binaries, in 2017, where modern packaging standards, as well as Docker, have been a game changer in the Python extensions world. Most examples come from our experience building [PyMiniRacer][1], an embedded Python / JavaScript bridge used in production across hundreds of companies.

We will describe the different aspects of building a binary extension, including:

- using the modern manylinux wheel type in order to ship a built binary, usable in most Linux distributions;
- the choices offered to developers when building an extension: the Python public C API, cffi, ...;
- testing of a binary module across various platforms;
- troubleshooting & debugging an extension: the basics you need to tackle most common issues.

[1]: https://github.com/sqreen/PyMiniRacer

https://us.pycon.org/2017/schedule/presentation/135/

Bde70c0ba031a765ff25c19e6b7d6d23?s=128

PyCon 2017

May 21, 2017
Tweet