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

Skip to content

Commit 87faf31

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 87faf31

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

doc/devel/development_setup.rst

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,21 @@ 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 on each rebuild. To do so, set the ``editable-verbose``
172+
config setting for the package on install ::
173+
174+
python -m pip install --no-build-isolation --config-settings=editable-verbose=true --editable .
175+
176+
For more information on installation and other configuration options, see the
177+
`meson-python <https://meson-python.readthedocs.io/en/latest/index.html>`_
178+
docs. Meson was enabled fairly recently (:ghpull:`26621`); therefore when working
179+
on a branch that does not yet have the commit, you will have to reinstall each
180+
time you change any compiled extension code.
181+
173182

174183
Verify the Installation
175184
=======================

0 commit comments

Comments
 (0)