Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 790a2de

Browse files
story645ksunden
andcommitted
Added info for getting compilation output from meson on autorebuild
Co-authored-by: Kyle Sunden <[email protected]>
1 parent 7ea11b7 commit 790a2de

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

doc/devel/development_setup.rst

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,22 @@ command ::
164164

165165
The 'editable/develop mode' builds everything and places links in your Python environment
166166
so that Python will be able to import Matplotlib from your development source directory.
167-
This allows you to import your modified version of Matplotlib without re-installing after
168-
every change. Note that before the merging of the `Meson port
169-
<https://github.com/matplotlib/matplotlib/pull/26621>`_, this is only true for ``*.py``
170-
files. If you change the C-extension source based on a commit before the change to the
171-
Meson build system (which might also happen if you change branches), you will have to
172-
re-run the above command.
167+
This allows you to import your modified version of Matplotlib without having to
168+
re-install after changing a ``.py`` or compiled extension file.
169+
170+
If you are working heavily with files that need to be compiled, you may want to
171+
inspect the compilation log. This can be enabled temporarily by setting the environment
172+
variable :envvar:`MESONPY_EDITABLE_VERBOSE` or permanently by setting the
173+
``editable-verbose`` config when installing ::
174+
175+
python -m pip install --no-build-isolation --config-settings=editable-verbose=true --editable .
176+
177+
For more information on installation and other configuration options, see the
178+
`meson-python <https://meson-python.readthedocs.io/en/latest/index.html>`_
179+
docs. Meson was enabled in :ghpull:`26621`; therefore when working
180+
on a branch that does not yet have the commit, you will have to reinstall each
181+
time you change any compiled extension code.
182+
173183

174184
Verify the Installation
175185
=======================

0 commit comments

Comments
 (0)