Re: gnulib-tool: Use the Python implementation by default

2024-04-29 Thread Collin Funk
Hi Dmitry, On 4/29/24 11:57 AM, Dmitry Selyutin wrote: > I've been tracking your progress for a while, even though sporadically and > remaining silent. I'd like to say "thank you" to Bruno and Collin, who made > it this far and never surrendered. :-) Thank you for the kind words! I'm glad you are

Re: gnulib-tool: Use the Python implementation by default

2024-04-29 Thread Bruno Haible
Hi Dmitry, The biggest "thank you" is yours, since you did the majority of the work (my estimations: you 4 months, Collin 2 months, me 1 month). OO is hard. I was and am still impressed about how your dissection of the code into classes (GLConfig, GLModule, GLModuleSystem, etc.) stood the test of

Re: gnulib-tool: Use the Python implementation by default

2024-04-29 Thread Dmitry Selyutin
Hi folks, sorry for the long silence! I've been tracking your progress for a while, even though sporadically and remaining silent. I'd like to say "thank you" to Bruno and Collin, who made it this far and never surrendered. :-) Truth to be told, the code I implemented leaves much to be desired, an

Re: gnulib-tool: Use the Python implementation by default

2024-04-27 Thread Paul Eggert
On 2024-04-27 11:49, Bruno Haible wrote: - In many recent systems, 'python3' exists and 'python' does not. This includes Ubuntu 23.10 and 24.04. (No idea why it's different on your machine.) Oh, I see I have the python-is-python3 package installed on my Ubuntu platform. I had forg

Re: gnulib-tool: Use the Python implementation by default

2024-04-27 Thread Collin Funk
On 4/27/24 11:49 AM, Bruno Haible wrote: > - In many older systems, 'python3' exists and 'python' exists as well and is > a 2.7.x version. > > I have not seen a single system where 'python' exists, is version 3, and > 'python3' does not exist. There is this PEP which came about with the Pyt

Re: gnulib-tool: Use the Python implementation by default

2024-04-27 Thread Bruno Haible
Paul Eggert wrote: > > Are there alternative Python implementations, which could be installed under > > the name 'python3'? > > On the platforms I currently have terminals open on (Fedora 40, Ubuntu > 23.10) it's called 'python'. You can also use 'python3' but I would > suggest trying 'python' f

Re: gnulib-tool: Use the Python implementation by default

2024-04-27 Thread Bruno Haible
Hi Pádraig, Thanks for the details. > So this is a general question, unrelated to my particular suggestion. It _is_ related :-) > Possible drop in replacements for the python3 command might be ... > > ... pypy, which separates its implementation version from python language > support version:

Re: gnulib-tool: Use the Python implementation by default

2024-04-27 Thread Paul Eggert
On 2024-04-27 06:32, Bruno Haible wrote: Are there alternative Python implementations, which could be installed under the name 'python3'? On the platforms I currently have terminals open on (Fedora 40, Ubuntu 23.10) it's called 'python'. You can also use 'python3' but I would suggest trying '

Re: gnulib-tool: Use the Python implementation by default

2024-04-27 Thread Pádraig Brady
On 27/04/2024 14:32, Bruno Haible wrote: Hi Pádraig, +if (python3 --version) >/dev/null 2>/dev/null \ + && case `python3 --version 2>&1` in +Python\ 3.[0-6] | Python\ 3.[0-6].*) false ;; +Python\ 3.*) true ;; +*) false ;; + esac; then It

Re: gnulib-tool: Use the Python implementation by default

2024-04-27 Thread Bruno Haible
Hi Pádraig, > > +if (python3 --version) >/dev/null 2>/dev/null \ > > + && case `python3 --version 2>&1` in > > +Python\ 3.[0-6] | Python\ 3.[0-6].*) false ;; > > +Python\ 3.*) true ;; > > +*) false ;; > > + esac; then > > It may be preferable

Re: gnulib-tool: Use the Python implementation by default

2024-04-27 Thread Pádraig Brady
On 26/04/2024 10:48, Bruno Haible wrote: I committed this patch, which activates the Python rewrite of gnulib-tool for all users who have Python installed, without the need to set any environment variable. I'll make announcements to info-gnu and planet.gnu.org soon. +if (python3 --version)

Re: gnulib-tool: Use the Python implementation by default

2024-04-26 Thread Bruno Haible
Hi Collin, > Should Python 3.7 be added to DEPENDENCIES or > should we hold off on that for a bit? Since gnulib-tool.sh can still > be used. Good point. Done like this: 2024-04-26 Bruno Haible Document prerequisite for gnulib-tool. Suggested by Collin Funk in

Re: gnulib-tool: Use the Python implementation by default

2024-04-26 Thread Collin Funk
Hi Bruno, On 4/26/24 2:48 AM, Bruno Haible wrote: > I committed this patch, which activates the Python rewrite of gnulib-tool > for all users who have Python installed, without the need to set any > environment variable. I'll make announcements to info-gnu and planet.gnu.org > soon. Looks good, t

gnulib-tool: Use the Python implementation by default

2024-04-26 Thread Bruno Haible
#x27;. We don't make releases, but it's an indication that Gnulib is mature now. Many thanks to Dmitry Selyutin for the ground work in 2012, and to Collin Funk for the finishing work in the last two months! 2024-04-26 Bruno Haible gnulib-tool: Use the Python implementation by defa