On Sun, May 28, 2023 at 7:38 PM Matthias Koeppe
<
matthia...@gmail.com> wrote:
>
> On Sunday, May 28, 2023 at 9:18:50 AM UTC-7 Dima Pasechnik wrote:
>
> On Sun, 28 May 2023, 16:18 Matthias Koeppe, <
matthia...@gmail.com> wrote:
>
> If the Sage library were to support a larger version range than Sage-the-distribution were to support, we would have to test this version support by another mechanism, separate from Sage-the-distribution.
>
>
> I don't understand - Sage the distribution is already on a newer than 3.8 Python, whereas Sage library does support 3.8.
>
>
> "Support", not "ship". As you are aware, through our spkg-configure mechanism, we accept system Python 3.8–3.11. (
https://github.com/sagemath/sage/blob/develop/build/pkgs/python3/spkg-configure.m4)
>
> spkg-configure is a mechanism of the Sage distribution, not of the Sage library.
This is misleading, and not correct for most of the spkg-configure.m4 files.
Python's spkg-configure.m4 is responsible for
testing whether it's possible to find Python3 good enough to be used with Sage.
The difference with "pure" library building is that you'd need to
invoke ./configure --with-system-python3=force
to get ./configure to bail out on not finding a good Python3, rather
than attempting to roll their own.
Similarly, e.g. eclib's spkg-configure.m4 is responsible for
testing whether libec.so is present and is good enough to build
various Python extensions using it, e.g.
homspace.cpython-39-x86_64-linux-gnu.so
> The version check is not just for ensuring that the Sage library works with the system Python, but also for all the Python packages that the Sage distribution ships.
>
> The Python version check of the Sage library, on the other hand, is done by "pip" on the basis of "python_requires" defined in src/setup.cfg[.m4] (
https://github.com/sagemath/sage/blob/develop/src/setup.cfg.m4).
This check is just a formality. Why would it ever fail if the
corresponding check in ./configure succeeds?
>
> --
> 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
sage-devel+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-devel/b88ae2a0-8d12-4e68-b261-aa2a23efa40fn%40googlegroups.com.