> What I understood from past discussions was that build systems (specifically > Meson) would rather prefer calling "cython" over a "setup.py" build. > Especially for larger packages like SciPy. Thus my comments regarding the > "cython" CLI interface.
Yeah - agree with this. My point with this was mainly that (even in CLI form) it's something that'll with be used by build tools rather than people. They're pretty comfortable with lots of small steps, so I wouldn't do any anything complicated like try to compile a Cython file and the shared code in a single operation. On 13 February 2025 09:05:55 GMT, Stefan Behnel via cython-devel <cython-devel@python.org> wrote: >da-woods schrieb am 13.02.25 um 09:16: >> Most people will probably want to do this from setup.py instead of >> calling an executable [...] >> we need something that can be run from the command-line, but the main users >> are build systems (e.g. scikit-build/ meson) and not people. > >What I understood from past discussions was that build systems (specifically >Meson) would rather prefer calling "cython" over a "setup.py" build. >Especially for larger packages like SciPy. Thus my comments regarding the >"cython" CLI interface. > >Programmatic "setup.py" / setuptools builds are more and more replaced by >declarative build setups in the Python world. I'm therefore not sure how >important "setup.py" support for this (new) feature still is. My gut feeling >is that it's still relevant because C/C++ module builds tend to be non-trivial >(and thus benefit from programmatic freedom), at least as soon as external >native libraries are involved. > >Still, support in "cythonize()" seems most natural to me, given the interface >of "here's a bunch of source files, now set up the extension module >configuration for me". A shared library seems to fit perfectly into that >approach, yielding an additional Extension config for the shared module and >adapting the config of dependent modules to use it. > >Stefan > >_______________________________________________ >cython-devel mailing list >cython-devel@python.org >https://mail.python.org/mailman/listinfo/cython-devel
_______________________________________________ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel