@@ -90,33 +90,32 @@ the env ``MPLLOCALFREETYPE`` as::
90
90
91
91
export MPLLOCALFREETYPE=1
92
92
93
- or copy :file: `setup.cfg.template ` to :file: `setup.cfg ` and edit it to contain ::
93
+ or copy :file: `setup.cfg.template ` to :file: `setup.cfg ` and edit it to contain
94
+ ::
94
95
95
96
[test]
96
97
local_freetype = True
97
98
98
-
99
99
To install Matplotlib (and compile the c-extensions) run the following
100
100
command from the top-level directory ::
101
101
102
- pip install -v -e ./
102
+ python -mpip install -ve .
103
103
104
104
This installs Matplotlib in 'editable/develop mode', i.e., builds
105
105
everything and places the correct link entries in the install
106
106
directory so that python will be able to import Matplotlib from the
107
107
source directory. Thus, any changes to the ``*.py `` files will be
108
108
reflected the next time you import the library. If you change the
109
- c -extension source (which might happen if you change branches) you
110
- will need to run::
109
+ C -extension source (which might happen if you change branches) you
110
+ will need to run ::
111
111
112
112
python setup.py build
113
113
114
- or re-run ``pip install -v -e ./ ``.
115
-
114
+ or re-run ``python -mpip install -ve . ``.
116
115
117
116
Alternatively, if you do ::
118
117
119
- pip install -v ./
118
+ python -mpip install -v .
120
119
121
120
all of the files will be copied to the installation directory however,
122
121
you will have to rerun this command every time the source is changed.
@@ -132,7 +131,6 @@ environment is set up properly::
132
131
133
132
python tests.py
134
133
135
-
136
134
.. _pytest : http://doc.pytest.org/en/latest/
137
135
.. _pep8 : https://pep8.readthedocs.io/en/latest/
138
136
.. _mock : https://docs.python.org/dev/library/unittest.mock.html
@@ -254,12 +252,12 @@ tools:
254
252
* Code with a good unittest coverage (at least 70%, better 100%), check
255
253
with::
256
254
257
- pip install coverage
255
+ python -mpip install coverage
258
256
python tests.py --with-coverage
259
257
260
258
* No pyflakes warnings, check with::
261
259
262
- pip install pyflakes
260
+ python -mpip install pyflakes
263
261
pyflakes path/to/module.py
264
262
265
263
.. note ::
0 commit comments