@@ -99,7 +99,7 @@ toolchain is prefixed. This may be used for cross compiling. ::
9999 export PKG_CONFIG=x86_64-pc-linux-gnu-pkg-config
100100
101101Once you have satisfied the requirements detailed below (mainly
102- Python, NumPy, libpng and FreeType), you can build Matplotlib.
102+ Python, NumPy, and FreeType), you can build Matplotlib.
103103::
104104
105105 cd matplotlib
@@ -121,7 +121,6 @@ Matplotlib requires the following dependencies:
121121
122122* `Python <https://www.python.org/downloads/ >`_ (>= 3.6)
123123* `FreeType <https://www.freetype.org/ >`_ (>= 2.3)
124- * `libpng <http://www.libpng.org >`_ (>= 1.2)
125124* `NumPy <http://www.numpy.org >`_ (>= 1.11)
126125* `setuptools <https://setuptools.readthedocs.io/en/latest/ >`_
127126* `cycler <http://matplotlib.org/cycler/ >`_ (>= 0.10.0)
@@ -177,8 +176,8 @@ etc., you can install the following:
177176 .. _pkg-config : https://www.freedesktop.org/wiki/Software/pkg-config/
178177
179178 If not using pkg-config (in particular on Windows), you may need to set the
180- include path (to the FreeType, libpng, and zlib headers) and link path (to
181- the FreeType, libpng, and zlib libraries) explicitly, if they are not in
179+ include path (to the FreeType and zlib headers) and link path (to
180+ the FreeType and zlib libraries) explicitly, if they are not in
182181 standard locations. This can be done using standard environment variables
183182 -- on Linux and OSX:
184183
@@ -195,8 +194,8 @@ etc., you can install the following:
195194 set LINK = /LIBPATH:C:\directory\containing\freetype.lib ...
196195
197196 where ``... `` means "also give, in the same format, the directories
198- containing ``png.h `` and `` zlib.h `` for the include path, and for
199- ``libpng.so ``/`` png.lib `` and `` libz.so ``/``z.lib `` for the link path."
197+ containing ``zlib.h `` for the include path, and for
198+ ``libz.so ``/``z.lib `` for the link path."
200199
201200.. note ::
202201
@@ -237,20 +236,20 @@ Building on macOS
237236-----------------
238237
239238The build situation on macOS is complicated by the various places one
240- can get the libpng and FreeType requirements (MacPorts, Fink,
239+ can get FreeType (MacPorts, Fink,
241240/usr/X11R6), the different architectures (e.g., x86, ppc, universal), and
242241the different macOS versions (e.g., 10.4 and 10.5). We recommend that you build
243242the way we do for the macOS release: get the source from the tarball or the
244243git repository and install the required dependencies through a third-party
245244package manager. Two widely used package managers are Homebrew, and MacPorts.
246- The following example illustrates how to install libpng and FreeType using
245+ The following example illustrates how to install FreeType using
247246``brew ``::
248247
249- brew install libpng freetype pkg-config
248+ brew install freetype pkg-config
250249
251250If you are using MacPorts, execute the following instead::
252251
253- port install libpng freetype pkgconfig
252+ port install freetype pkgconfig
254253
255254After installing the above requirements, install Matplotlib from source by
256255executing::
@@ -274,7 +273,7 @@ https://packaging.python.org/guides/packaging-binary-extensions/#setting-up-a-bu
274273for how to set up a build environment.
275274
276275Since there is no canonical Windows package manager, the methods for building
277- FreeType, zlib, and libpng from source code are documented as a build script
276+ FreeType and zlib from source code are documented as a build script
278277at `matplotlib-winbuild <https://github.com/jbmohler/matplotlib-winbuild >`_.
279278
280279There are a few possibilities to build Matplotlib on Windows:
@@ -290,17 +289,16 @@ Wheel builds using conda packages
290289^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
291290
292291This is a wheel build, but we use conda packages to get all the requirements.
293- The binary requirements (png, FreeType,...) are statically linked and therefore
294- not needed during the wheel install.
292+ FreeType is statically linked and therefore not needed during the wheel install.
295293
296294Set up the conda environment. Note, if you want a qt backend, add ``pyqt `` to
297295the list of conda packages.
298296
299297::
300298
301- conda create -n "matplotlib_build" python=3.7 numpy python-dateutil pyparsing tornado cycler tk libpng zlib freetype
299+ conda create -n "matplotlib_build" python=3.7 numpy python-dateutil pyparsing tornado cycler tk zlib freetype
302300 conda activate matplotlib_build
303- # force the build against static libpng and zlib libraries
301+ # force the build against static zlib libraries
304302 set MPLSTATICBUILD=True
305303 python setup.py bdist_wheel
306304
0 commit comments