should I manually adapt meson.build?

72 views
Skip to first unread message

Martin R

unread,
May 15, 2025, 11:51:16 AMMay 15
to sage-devel
The patchbot reports the following:

Run python3 tools/update-meson.py
Analyzing meson file: ./meson.build
-- Project: SageMath
-- Version: undefined
Rewriting ./src/sage/rings/meson.build
Error: the git repo has uncommitted changes:
M src/sage/rings/meson.build
HEAD detached from pull/38544/merge
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: src/sage/rings/meson.build
no changes added to commit (use "git add" and/or "git commit -a")
diff --git a/src/sage/rings/meson.build b/src/sage/rings/meson.build
index 5f4dafd..30a059f 100644
--- a/src/sage/rings/meson.build
+++ b/src/sage/rings/meson.build
@@ -38,6 +38,7 @@ py.install_sources(
'laurent_series_ring_element.pxd',
'lazy_series.py',
'lazy_series_ring.py',
+ 'lazy_species.py',
'localization.py',
'monomials.py',
'morphism.pxd',
Error: Process completed with exit code 1.

Tobia...@gmx.de

unread,
May 15, 2025, 8:20:01 PMMay 15
to sage-devel
Yes the meson files need to be changed whenever you add or remove python or cython files. Either run 'tools/update-meson.py' locally or apply the changes suggested in the above output manually.

Martin R

unread,
May 16, 2025, 5:05:26 AMMay 16
to sage-devel

Traceback (most recent call last):
 File "/home/martin/sage/tools/update-meson.py", line 15, in <module>
   from mesonbuild.mformat import (
ModuleNotFoundError: No module named 'mesonbuild.mformat'

Tobia...@gmx.de

unread,
May 16, 2025, 9:38:39 AMMay 16
to sage-devel
You have to (pip)install `meson`. Not sure what's the sage-the-distro way of doing this (or why meson is not automatically installed in the venv).

Or, preferably, after https://github.com/sagemath/sage/pull/39262 you can just run `uv run tools/update-meson.py`.

Michael Orlitzky

unread,
May 16, 2025, 10:25:04 AMMay 16
to 'Tobia...@gmx.de' via sage-devel
On 2025-05-16 06:38:39, 'Tobia...@gmx.de' via sage-devel wrote:
> You have to (pip)install `meson`. Not sure what's the sage-the-distro way
> of doing this (or why meson is not automatically installed in the venv).

Maybe it just needs ./sage -sh first?
Reply all
Reply to author
Forward
0 new messages