Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dd2070d

Browse filesBrowse files
committed
Cleanup docs regarding compilers.
- On Windows, with py>=3.5, it's just "use VS>=2015". - On macOS (or anywhere else), a compiler is only needed when building from source.
1 parent 9a603cf commit dd2070d
Copy full SHA for dd2070d

File tree

Expand file treeCollapse file tree

2 files changed

+8
-19
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-19
lines changed

‎INSTALL.rst

Copy file name to clipboardExpand all lines: INSTALL.rst
+2-7Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,11 @@ and on Windows:
238238
- ``qhull``: to compute Delaunay triangulation;
239239
- ``ttconv``: a TrueType font utility.
240240

241-
.. _build_windows:
242-
243241
Building on Windows
244242
-------------------
245243

246-
The Python shipped from https://www.python.org is compiled with Visual Studio
247-
2015 for 3.5+. Python extensions should be compiled with the same
248-
compiler, see e.g.
249-
https://packaging.python.org/guides/packaging-binary-extensions/#binary-extensions-for-windows
250-
for how to set up a build environment.
244+
Compiling Matplotlib (or any other extension module, for that matter) requires
245+
Visual Studio 2015 or later.
251246

252247
If you are building your own Matplotlib wheels (or sdists), note that any DLLs
253248
that you copy into the source tree will be packaged too.

‎doc/faq/installing_faq.rst

Copy file name to clipboardExpand all lines: doc/faq/installing_faq.rst
+6-12Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,6 @@ from the Terminal.app command line::
127127
You might also want to install IPython or the Jupyter notebook (``python3 -mpip
128128
install ipython notebook``).
129129

130-
pip problems
131-
^^^^^^^^^^^^
132-
133-
If you get errors with pip trying to run a compiler like ``gcc`` or ``clang``,
134-
then the first thing to try is to `install xcode
135-
<https://guide.macports.org/chunked/installing.html#installing.xcode>`_ and
136-
retry the install. If that does not work, then check
137-
:ref:`reporting-problems`.
138-
139130
Checking your installation
140131
--------------------------
141132

@@ -174,6 +165,12 @@ picked up by other Pythons. If all these fail, please :ref:`let us know
174165
Install from source
175166
===================
176167

168+
A C compiler is required. Typically, on Linux, you will need ``gcc``, which
169+
should be installed using your distribution's package manager; on macOS, you
170+
will need xcode_; on Windows, you will need Visual Studio 2015 or later.
171+
172+
.. _xcode: https://guide.macports.org/chunked/installing.html#installing.xcode
173+
177174
Clone the main source using one of::
178175

179176
git clone git@github.com:matplotlib/matplotlib.git
@@ -197,9 +194,6 @@ just replace the last step with::
197194
This creates links and installs the command line script in the appropriate
198195
places.
199196

200-
.. note::
201-
Windows users please see the :ref:`build_windows` guide.
202-
203197
Then, if you want to update your Matplotlib at any time, just do::
204198

205199
git pull

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.