@@ -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
@@ -128,7 +128,6 @@ Matplotlib requires the following dependencies:
128128
129129* `Python <https://www.python.org/downloads/ >`_ (>= 3.6)
130130* `FreeType <https://www.freetype.org/ >`_ (>= 2.3)
131- * `libpng <http://www.libpng.org >`_ (>= 1.2)
132131* `NumPy <http://www.numpy.org >`_ (>= 1.11)
133132* `setuptools <https://setuptools.readthedocs.io/en/latest/ >`_
134133* `cycler <http://matplotlib.org/cycler/ >`_ (>= 0.10.0)
@@ -184,8 +183,8 @@ etc., you can install the following:
184183 .. _pkg-config : https://www.freedesktop.org/wiki/Software/pkg-config/
185184
186185 If not using pkg-config (in particular on Windows), you may need to set the
187- include path (to the FreeType, libpng, and zlib headers) and link path (to
188- the FreeType, libpng, and zlib libraries) explicitly, if they are not in
186+ include path (to the FreeType and zlib headers) and link path (to
187+ the FreeType and zlib libraries) explicitly, if they are not in
189188 standard locations. This can be done using standard environment variables
190189 -- on Linux and OSX:
191190
@@ -202,8 +201,8 @@ etc., you can install the following:
202201 set LINK = /LIBPATH:C:\directory\containing\freetype.lib ...
203202
204203 where ``... `` means "also give, in the same format, the directories
205- containing ``png.h `` and `` zlib.h `` for the include path, and for
206- ``libpng.so ``/`` png.lib `` and `` libz.so ``/``z.lib `` for the link path."
204+ containing ``zlib.h `` for the include path, and for
205+ ``libz.so ``/``z.lib `` for the link path."
207206
208207.. note ::
209208
@@ -244,20 +243,20 @@ Building on macOS
244243-----------------
245244
246245The build situation on macOS is complicated by the various places one
247- can get the libpng and FreeType requirements (MacPorts, Fink,
246+ can get FreeType (MacPorts, Fink,
248247/usr/X11R6), the different architectures (e.g., x86, ppc, universal), and
249248the different macOS versions (e.g., 10.4 and 10.5). We recommend that you build
250249the way we do for the macOS release: get the source from the tarball or the
251250git repository and install the required dependencies through a third-party
252251package manager. Two widely used package managers are Homebrew, and MacPorts.
253- The following example illustrates how to install libpng and FreeType using
252+ The following example illustrates how to install FreeType using
254253``brew ``::
255254
256- brew install libpng freetype pkg-config
255+ brew install freetype pkg-config
257256
258257If you are using MacPorts, execute the following instead::
259258
260- port install libpng freetype pkgconfig
259+ port install freetype pkgconfig
261260
262261After installing the above requirements, install Matplotlib from source by
263262executing::
@@ -281,7 +280,7 @@ https://packaging.python.org/guides/packaging-binary-extensions/#setting-up-a-bu
281280for how to set up a build environment.
282281
283282Since there is no canonical Windows package manager, the methods for building
284- FreeType, zlib, and libpng from source code are documented as a build script
283+ FreeType and zlib from source code are documented as a build script
285284at `matplotlib-winbuild <https://github.com/jbmohler/matplotlib-winbuild >`_.
286285
287286There are a few possibilities to build Matplotlib on Windows:
@@ -297,17 +296,16 @@ Wheel builds using conda packages
297296^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
298297
299298This is a wheel build, but we use conda packages to get all the requirements.
300- The binary requirements (png, FreeType,...) are statically linked and therefore
301- not needed during the wheel install.
299+ FreeType is statically linked and therefore not needed during the wheel install.
302300
303301Set up the conda environment. Note, if you want a qt backend, add ``pyqt `` to
304302the list of conda packages.
305303
306304::
307305
308- conda create -n "matplotlib_build" python=3.7 numpy python-dateutil pyparsing tornado cycler tk libpng zlib freetype msinttypes
306+ conda create -n "matplotlib_build" python=3.7 numpy python-dateutil pyparsing tornado cycler tk zlib freetype msinttypes
309307 conda activate matplotlib_build
310- # force the build against static libpng and zlib libraries
308+ # force the build against static zlib libraries
311309 set MPLSTATICBUILD=True
312310 python setup.py bdist_wheel
313311
0 commit comments