On Thu, Jan 12, 2023 at 10:29:38AM +0100, Landry Breuil wrote:
> Le Wed, Jan 11, 2023 at 05:04:09PM +0100, Jan Stary a ?crit :
> > The python-3.10 port provides a 'python3' symlink,
> > but python-3.11 does not. This makes build systems using AM_PYTHON,
> > such as libsndfile's ./configure as produced by automake-1.16.5,
> > _miss_ python, because python.m4 does this:
> > 
> > AC_DEFUN([AM_PATH_PYTHON],
> >  [
> >   dnl Find a Python interpreter.  Python versions prior to 2.0 are not
> >   dnl supported. (2.0 was released on October 16, 2000).
> >   m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
> > [python python2 python3 dnl
> >  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl
> >  python3.2 python3.1 python3.0 dnl
> >  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl
> >  python2.0])
> > 
> > So python3.10 is found via the python3 symlink, but python3.11 is not found.
> > 
> > I don't use python as such. Is that the port adding the symlink,
> > or the 3.10 distribution? Can we please have the symlink for 3.11
> > as well? That's probably the easiest way to accommodate such systems.

A better way would be to patch or redefine _AM_PYTHON_INTERPRETER_LIST.
Automake's master has python3 up to 3.15 there, see
http://git.savannah.gnu.org/cgit/automake.git/tree/m4/python.m4

m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
[python python2 python3 dnl
 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 dnl
 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl
 python3.2 python3.1 python3.0 dnl
 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl
 python2.0])


the last automake release was some time ago, there was no python3.10 and
11 back then. 

> > 
> > (God I hate autotools.)
cmake and python's distutils etc. may be added here too :-)

best,
Dima

Reply via email to