[Matplotlib-devel] Advice on building wheels for Linux

Matthew Brett matthew.brett at gmail.com
Sat Apr 23 13:04:08 EDT 2016


Hi,

I have been working on building manylinux [1] wheels for matplotlib.

My first-pass at a recipe for a matplotlib wheel is here:

https://github.com/matthew-brett/manylinux-builds/blob/master/build_matplotlibs.sh

The main work is deciding which external libraries to build - here's
that part of the recipe:

https://github.com/matthew-brett/manylinux-builds/blob/master/build_mpl_libs.sh

In short, I'm building libz, libbz2, libjpeg, libpng and freetype.

Is that the right list?  Should I add more?

I have built wheels for testing at https://nipy.bic.berkeley.edu/manylinux:

# upgrade pip to latest for manylinux support
python -m pip install --upgrade pip
pip install -f https://nipy.bic.berkeley.edu/manylinux matplotlib

I would be very grateful for any feedback,

Thanks a lot,

Matthew

[1] https://www.python.org/dev/peps/pep-0513/


More information about the Matplotlib-devel mailing list