another question is why does one need a direct interface to libpari in cython code, instead of cypari2?
On January 12, 2026 5:43:08 PM CST, Michael Orlitzky <[email protected]> wrote: >On 2026-01-12 13:14:58, Nils Bruin wrote: >> >> The "harder" is in comparison to what you do for setup.py: just copy-paste >> from the cython documentation: >> https://cython.readthedocs.io/en/latest/src/quickstart/build.html > >What is really missing is "big picture" documentation. Essentially you >are using meson as the build system, and pyproject.toml as a minimal >interface between the real build system (meson) and the python >packaging infrastructure. Otherwise, pip wouldn't know what to do. > >There are some decent docs for using meson to build cython extensions, >but in the long run (i.e. after you forget all the time you wasted >learning a new build system), what is nice is that you're just writing >meson. Using it for a cython project is not much different than using >it for any other project. > >There are also some decent docs for pyproject.toml files, which will >end up containing some metadata and not much else. Here you can copy & >paste. Any of the independent cython projects under the SageMath >umbrella should serve well as a template. > >It's a headache in the short term, but there are many unfixable >problems with the old distutils approach that disappear when meson is >used: no way to detect C libraries and their compiler/linker flags, no >support for other languages, bad support for parallel builds, etc. > >You can start writing a meson.build file without messing anything else >up, and attempt to build the project by running the meson setup / >compile / install commands manually. When that works, replacing >setup.py by a pyproject.toml that punts to meson is a trivial step. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/sage-devel/C2973130-97BD-4286-A9EC-4E737C409F2B%40gmail.com.
