This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Ping^2 Re: Use gen-libm-test.py to generate ulps table for manual
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Carlos O'Donell <carlos at redhat dot com>
- Cc: "Dmitry V. Levin" <ldv at altlinux dot org>, Andreas Schwab <schwab at suse dot de>, Zack Weinberg <zackw at panix dot com>, GNU C Library <libc-alpha at sourceware dot org>, <eggert at cs dot ucla dot edu>
- Date: Mon, 1 Oct 2018 15:44:22 +0000
- Subject: Re: Ping^2 Re: Use gen-libm-test.py to generate ulps table for manual
- References: <alpine.DEB.2.20.1808092025590.28500@digraph.polyomino.org.uk> <alpine.DEB.2.21.1808211719240.1581@digraph.polyomino.org.uk> <mvmbm9dgzd6.fsf@suse.de> <CAKCAbMgo=+vv_cX5edqEHAf-Uo41zzaJZJpPZFwb9MuGcNbZrw@mail.gmail.com> <mvm36upgy4m.fsf@suse.de> <alpine.DEB.2.21.1809041418540.13030@digraph.polyomino.org.uk> <alpine.DEB.2.21.1809101240120.27941@digraph.polyomino.org.uk> <20180910181224.GC8807@altlinux.org> <alpine.DEB.2.21.1809171200160.13789@digraph.polyomino.org.uk> <alpine.DEB.2.21.1809251654040.14070@digraph.polyomino.org.uk> <alpine.DEB.2.21.1810011506180.31082@digraph.polyomino.org.uk> <4f0aa0ad-6b4a-d45d-4ccb-04de05b73a73@redhat.com>
On Mon, 1 Oct 2018, Carlos O'Donell wrote:
> If you could write up the following:
>
> * Exact version of python to use.
Any non-EOL Python 3 series. So 3.4 or later at present, 3.5 or later
could be required from 2019-03-16 (but that doesn't mean we have to
increase the requirement then, if there aren't any new features we want to
use), 3.6 or later could be required from 2020-09-13, as per the table at
<https://devguide.python.org/>.
> * Exact set of imports we need.
Only modules in the Python (3.4) standard library, and excluding modules
such as XML, database and UI libraries that depend on external libraries.
I don't think we need anything depending on OpenSSL (hashlib appears to
work without it, in Python 3.7, and we probably don't need hashlib
anyway), but it's possible there may be dependencies on libffi - however,
I think it's likely we can avoid ctypes which is what brings in the libffi
dependency, and indirect dependencies on it from e.g. multiprocessing.
I think trying to list exhaustively exactly which modules may be used is a
bad idea, since there are lots of pure-Python modules in the standard
library without any external C library dependencies (direct or indirect)
and it's hard to predict exactly which could be useful at some point.
gen-libm-test.py uses argparse, collections, os (after the present patch
that would require it to build the manual) and re. The scripts used in
the conform/ tests (not of course strictly relevant to build requirements,
exact in regard to what tests can use unconditionally rather than needing
to be conditionally UNSUPPORTED) also use shutil, subprocess, tempfile. I
expect there would be plenty more pure-Python standard library modules
that would turn out to be useful for some particular script.
--
Joseph S. Myers
joseph@codesourcery.com