Skip to content

Commit dc82334

Browse files
tacaswellstory645
authored andcommitted
Merge pull request #27395 from story645/dependencies-install
DOC: Moved dependencies under install because they're version dependent (cherry picked from commit d267a1d)
1 parent f030d45 commit dc82334

File tree

4 files changed

+46
-22
lines changed

4 files changed

+46
-22
lines changed

doc/devel/development_setup.rst

+13-2
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,18 @@ Remember to activate the environment whenever you start working on Matplotlib.
155155

156156
Install Dependencies
157157
====================
158+
158159
Most Python dependencies will be installed when :ref:`setting up the environment <dev-environment>`
159160
but non-Python dependencies like C++ compilers, LaTeX, and other system applications
160-
must be installed separately. For a full list, see :ref:`dependencies`.
161+
must be installed separately.
162+
163+
.. toctree::
164+
:maxdepth: 2
165+
166+
../users/installing/dependencies
167+
168+
169+
.. _development-install:
161170

162171
Install Matplotlib in editable mode
163172
===================================
@@ -178,7 +187,9 @@ also happen if you change branches) you will have to re-run
178187

179188
If the installation is not working, please consult the :ref:`troubleshooting guide <troubleshooting-faq>`.
180189
If the guide does not offer a solution, please reach out via `chat <https://gitter.im/matplotlib/matplotlib>`_
181-
or :ref:`open an issue <submitting-a-bug-report>`.
190+
or :ref:`open an issue <submitting-a-bug-report>`. For a list of the other environment
191+
variables you can set before install, see :ref:`environment-variables`.
192+
182193

183194
Verify the Installation
184195
=======================

doc/devel/index.rst

-6
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,6 @@ Development environment
9797

9898
development_setup
9999

100-
.. toctree::
101-
:maxdepth: 1
102-
103-
dependencies
104-
../users/installing/environment_variables_faq.rst
105-
106100

107101
.. grid-item-card::
108102
:shadow: none

doc/devel/dependencies.rst renamed to doc/users/installing/dependencies.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. redirect-from: /devel/dependencies
2+
13
.. _dependencies:
24

35
============
@@ -377,7 +379,7 @@ The additional Python packages required to build the
377379

378380
The content of :file:`doc-requirements.txt` is also shown below:
379381

380-
.. include:: ../../requirements/doc/doc-requirements.txt
382+
.. include:: ../../../requirements/doc/doc-requirements.txt
381383
:literal:
382384

383385
Additional external dependencies

doc/users/installing/index.rst

+30-13
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. redirect-from:: /users/installing
22

3-
============
3+
************
44
Installation
5-
============
5+
************
66

77

88
Install an official release
@@ -135,25 +135,42 @@ Configure build and behavior defaults
135135
=====================================
136136

137137
Aspects of the build and install process and some behaviorial defaults of the
138-
library can be configured via :ref:`environment-variables`. Default plotting
139-
appearance and behavior can be configured via the
138+
library can be configured via:
139+
140+
.. toctree::
141+
:maxdepth: 2
142+
143+
environment_variables_faq.rst
144+
145+
Default plotting appearance and behavior can be configured via the
140146
:ref:`rcParams file <customizing-with-matplotlibrc-files>`
141147

142148

149+
Dependencies
150+
============
151+
152+
Mandatory dependencies should be installed automatically if you install Matplotlib using
153+
a package manager such as ``pip`` or ``conda``; therefore this list is primarily for
154+
reference and troubleshooting.
155+
156+
.. toctree::
157+
:maxdepth: 2
158+
159+
dependencies
160+
143161

144162
.. _installing-faq:
145163

146-
==========================
147164
Frequently asked questions
148-
==========================
165+
===========================
149166

150167
Report a compilation problem
151-
============================
168+
----------------------------
152169

153170
See :ref:`reporting-problems`.
154171

155172
Matplotlib compiled fine, but nothing shows up when I use it
156-
============================================================
173+
------------------------------------------------------------
157174

158175
The first thing to try is a :ref:`clean install <clean-install>` and see if
159176
that helps. If not, the best way to test your install is by running a script,
@@ -175,7 +192,7 @@ If you are still having trouble, see :ref:`reporting-problems`.
175192
.. _clean-install:
176193

177194
How to completely remove Matplotlib
178-
===================================
195+
-----------------------------------
179196

180197
Occasionally, problems with Matplotlib can be solved with a clean
181198
installation of the package. In order to fully remove an installed Matplotlib:
@@ -187,12 +204,12 @@ installation of the package. In order to fully remove an installed Matplotlib:
187204
directory <locating-matplotlib-install>`.
188205

189206
OSX Notes
190-
=========
207+
---------
191208

192209
.. _which-python-for-osx:
193210

194211
Which python for OSX?
195-
---------------------
212+
^^^^^^^^^^^^^^^^^^^^^
196213

197214
Apple ships OSX with its own Python, in ``/usr/bin/python``, and its own copy
198215
of Matplotlib. Unfortunately, the way Apple currently installs its own copies
@@ -222,7 +239,7 @@ or Python.org Python.
222239
.. _install_osx_binaries:
223240

224241
Installing OSX binary wheels
225-
----------------------------
242+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
226243

227244
If you are using Python from https://www.python.org, Homebrew, or Macports,
228245
then you can use the standard pip installer to install Matplotlib binaries in
@@ -242,7 +259,7 @@ You might also want to install IPython or the Jupyter notebook (``python3 -m pip
242259
install ipython notebook``).
243260

244261
Checking your installation
245-
--------------------------
262+
^^^^^^^^^^^^^^^^^^^^^^^^^^
246263

247264
The new version of Matplotlib should now be on your Python "path". Check this
248265
at the Terminal.app command line::

0 commit comments

Comments
 (0)