Skip to content

Migrate build system to Meson - #12

Merged
dimpase merged 3 commits into
sagemath:mainfrom
tobiasdiez:meson
Dec 27, 2025
Merged

dimpase merged 3 commits into
sagemath:mainfrom
tobiasdiez:meson

Conversation

@tobiasdiez

@tobiasdiez tobiasdiez commented Dec 22, 2025 •

Copy link
Copy Markdown
Contributor

In this PR:

  • Migrate to Meson as build system
  • Change to src layout (i.e. source files are in src/memory_allocator/ instead of memory_allocator/) to make sure that they are not accidentally picked up in editable install (and the src layout is the dir structure used by uv when creating a new library)

Next steps for a modern setup would be (which I will do after this PR is merged):

  • Use uv
  • Build wheels on more systems / fix the wheel workflow
  • Use ruff instead of flake

Meson randomly tries to select the 64-bit Python, which then breaks the compilation. Probably fixable (see eg mesonbuild/meson-python#610) but not really worth the effort as 32-bit Windows is anyway quite outdated.
@tobiasdiez

Copy link
Copy Markdown
Contributor Author

@dimpase could you please have a look at this? Thanks!

@tobiasdiez

Copy link
Copy Markdown
Contributor Author

@dimpase @kliem Ping

@dimpase
dimpase merged commit 1ebf2b7 into sagemath:main Dec 27, 2025
13 of 14 checks passed
@tobiasdiez
tobiasdiez deleted the meson branch December 28, 2025 10:10
@tobiasdiez

Copy link
Copy Markdown
Contributor Author

Thanks!

dimpase added a commit that referenced this pull request Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants