You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Paul Burba <pt...@gmail.com> on 2009/01/09 22:29:40 UTC

RFC: Change minimum Python requirement to 2.?

Currently INSTALL states that we require Python 2.2 or newer.

While trying to track down some testing bugs on Windows I downgraded
from Python 2.6.2 to 2.3.5 and, changing nothing else, re-ran the test
suite.  The tests would not run to completion and hung in many places.
 Then I tried to rebuild trunk (r35135) with 2.3.5 and the build
simply fails:

C:\SVN\src-trunk>gen-make.py -t vcproj --vsnet-version=2008
--with-neon=C:\SVN\src-trunk\neon --with-httpd=C:\SVN\httpd-2.2.10
--with-openssl=C:\SVN\openssl --with-berkeley-db=C:\S
VN\bdb --with-apr=C:\SVN\httpd-2.2.10\srclib\apr
--with-apr-util=C:\SVN\httpd-2.2.10\srclib\apr-util
--with-zlib=C:\SVN\zlib --enable-bdb-in-apr-util
--with-serf=C:\SVN\serf --with
-swig=C:\SVN\swig --with-junit="C:\Program
Files\Java\jdk1.6.0_07\jre\lib\ext\junit-4.4.jar"
--with-sqlite=C:\SVN\sqlite
Found libdb47.lib in C:\SVN\bdb
Generating for VS.NET 2008
Could not detect Ruby version.
  Ruby bindings will be linked with msvcrt-ruby18.lib
Found installed perl version number.
  Perl bindings will be linked with perl510.lib
Found installed SWIG version 1.3.36
Using SWIG library directory C:\SVN\swig\Lib
Found JDK version 1.6 in C:\Program Files\Java\jdk1.6.0_07
Found SQLite version 3.6.3
Found neon version 0.28.2
Wrote: build\win32\build_zlib.bat
Wrote: build\win32\build_locale.bat
Traceback (most recent call last):
  File "C:\SVN\src-trunk\gen-make.py", line 288, in ?
    main(conf, gentype, skip_depends=skip, other_options=rest.list)
  File "C:\SVN\src-trunk\gen-make.py", line 40, in main
    generator = gen_module.Generator(fname, verfname, other_options)
  File "build\generator\gen_vcnet_vcproj.py", line 18, in __init__
    'vcnet-vcproj')
  File "build\generator\gen_win.py", line 285, in __init__
    swig.Generator(self.conf, self.swig_exe).write()
  File "build\generator\swig\header_wrappers.py", line 20, in __init__
    generator.swig.Generator.__init__(self, conf, swig_path)
  File "build\generator\swig\__init__.py", line 43, in __init__
    self.swig_libdir = _exec.output([self.swig_path, "-swiglib"], strip=1)
  File "build\generator\util\executable.py", line 44, in output
    (stdin, stdout) = os.popen4(cmd)
TypeError: popen4() argument 1 must be string, not list

Now this build problem is simple to fix, but it, and the testing
failures, make me wonder if any active developers are using "older"
versions of Python.  Perhaps it is time we bumped the minimum
requirement?

I suggest 2.4 because there are several places in the build and test
environment where different code paths are followed for Python < 2.4
and from my preliminary testing these code paths don't work correctly.
 So either we need to fix them or remove them.

Any objections to bumping the minimum version?  If not, should it be
2.4 or something even newer?

Thoughts appreciated...

Paul

Re: RFC: Change minimum Python requirement to 2.?

Posted by Greg Stein <gs...@gmail.com>.
On Jan 9, 2009, at 14:41, Paul Burba <pt...@gmail.com> wrote:

> On Fri, Jan 9, 2009 at 5:29 PM, Paul Burba <pt...@gmail.com> wrote:
>> Currently INSTALL states that we require Python 2.2 or newer.
>>
>> While trying to track down some testing bugs on Windows I downgraded
>> from Python 2.6.2 to 2.3.5 and, changing nothing else, re-ran the  
>> test
>              ^^^^^
> Uh, that would be 2.6.1, since time travel hasn't been perfected yet.
>

Of course it has. But only Guido gets to use his time machine.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1016713

Re: RFC: Change minimum Python requirement to 2.?

Posted by Paul Burba <pt...@gmail.com>.
On Fri, Jan 9, 2009 at 5:29 PM, Paul Burba <pt...@gmail.com> wrote:
> Currently INSTALL states that we require Python 2.2 or newer.
>
> While trying to track down some testing bugs on Windows I downgraded
> from Python 2.6.2 to 2.3.5 and, changing nothing else, re-ran the test
              ^^^^^
Uh, that would be 2.6.1, since time travel hasn't been perfected yet.

Re: RFC: Change minimum Python requirement to 2.?

Posted by Mark Eichin <ei...@gmail.com>.
Debian etch has python 2.4 still - that could easily be argued to be the
oldest python worth considering...

On Jan 10, 2009 2:00 PM, "Arfrever Frehtes Taifersar Arahesis" <
Arfrever.FTA@gmail.com> wrote:

2009-01-09 23:29:40 Paul Burba napisał(a):

> Currently INSTALL states that we require Python 2.2 or newer. > > While
trying to track down some...
+1 for requiring Python >=2.4.

--
Arfrever Frehtes Taifersar Arahesis

Re: RFC: Change minimum Python requirement to 2.?

Posted by Arfrever Frehtes Taifersar Arahesis <Ar...@GMail.Com>.
2009-01-09 23:29:40 Paul Burba napisał(a):
> Currently INSTALL states that we require Python 2.2 or newer.
> 
> While trying to track down some testing bugs on Windows I downgraded
> from Python 2.6.2 to 2.3.5 and, changing nothing else, re-ran the test
> suite.  The tests would not run to completion and hung in many places.
>  Then I tried to rebuild trunk (r35135) with 2.3.5 and the build
> simply fails:
> 
> C:\SVN\src-trunk>gen-make.py -t vcproj --vsnet-version=2008
> --with-neon=C:\SVN\src-trunk\neon --with-httpd=C:\SVN\httpd-2.2.10
> --with-openssl=C:\SVN\openssl --with-berkeley-db=C:\S
> VN\bdb --with-apr=C:\SVN\httpd-2.2.10\srclib\apr
> --with-apr-util=C:\SVN\httpd-2.2.10\srclib\apr-util
> --with-zlib=C:\SVN\zlib --enable-bdb-in-apr-util
> --with-serf=C:\SVN\serf --with
> -swig=C:\SVN\swig --with-junit="C:\Program
> Files\Java\jdk1.6.0_07\jre\lib\ext\junit-4.4.jar"
> --with-sqlite=C:\SVN\sqlite
> Found libdb47.lib in C:\SVN\bdb
> Generating for VS.NET 2008
> Could not detect Ruby version.
>   Ruby bindings will be linked with msvcrt-ruby18.lib
> Found installed perl version number.
>   Perl bindings will be linked with perl510.lib
> Found installed SWIG version 1.3.36
> Using SWIG library directory C:\SVN\swig\Lib
> Found JDK version 1.6 in C:\Program Files\Java\jdk1.6.0_07
> Found SQLite version 3.6.3
> Found neon version 0.28.2
> Wrote: build\win32\build_zlib.bat
> Wrote: build\win32\build_locale.bat
> Traceback (most recent call last):
>   File "C:\SVN\src-trunk\gen-make.py", line 288, in ?
>     main(conf, gentype, skip_depends=skip, other_options=rest.list)
>   File "C:\SVN\src-trunk\gen-make.py", line 40, in main
>     generator = gen_module.Generator(fname, verfname, other_options)
>   File "build\generator\gen_vcnet_vcproj.py", line 18, in __init__
>     'vcnet-vcproj')
>   File "build\generator\gen_win.py", line 285, in __init__
>     swig.Generator(self.conf, self.swig_exe).write()
>   File "build\generator\swig\header_wrappers.py", line 20, in __init__
>     generator.swig.Generator.__init__(self, conf, swig_path)
>   File "build\generator\swig\__init__.py", line 43, in __init__
>     self.swig_libdir = _exec.output([self.swig_path, "-swiglib"], strip=1)
>   File "build\generator\util\executable.py", line 44, in output
>     (stdin, stdout) = os.popen4(cmd)
> TypeError: popen4() argument 1 must be string, not list
> 
> Now this build problem is simple to fix, but it, and the testing
> failures, make me wonder if any active developers are using "older"
> versions of Python.  Perhaps it is time we bumped the minimum
> requirement?
> 
> I suggest 2.4 because there are several places in the build and test
> environment where different code paths are followed for Python < 2.4
> and from my preliminary testing these code paths don't work correctly.
>  So either we need to fix them or remove them.
> 
> Any objections to bumping the minimum version?  If not, should it be
> 2.4 or something even newer?

+1 for requiring Python >=2.4.

-- 
Arfrever Frehtes Taifersar Arahesis

Re: RFC: Change minimum Python requirement to 2.?

Posted by Arfrever Frehtes Taifersar Arahesis <Ar...@GMail.Com>.
2009-01-16 23:25:21 Arfrever Frehtes Taifersar Arahesis napisał(a):
> It seems that nobody is against bumping the minimum version to 2.4.
> I'm going to commit this change tomorrow.

Committed in r35307.

-- 
Arfrever Frehtes Taifersar Arahesis

Re: RFC: Change minimum Python requirement to 2.?

Posted by Arfrever Frehtes Taifersar Arahesis <Ar...@GMail.Com>.
It seems that nobody is against bumping the minimum version to 2.4.
I'm going to commit this change tomorrow.

-- 
Arfrever Frehtes Taifersar Arahesis

Re: RFC: Change minimum Python requirement to 2.?

Posted by Michael Haggerty <mh...@alum.mit.edu>.
Paul Burba wrote:
> Michael, in the same thread you also had some objections to 2.4, do
> those still hold as well?

Python 2.4 is now more than 4 years old, so IMO it would be reasonable
to switch.

I bumped the cvs2svn Python requirement to 2.4 as of last November.
Nobody has complained so far (though cvs2svn is used differently than
Subversion, so that fact is not so relevant).

Michael

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1021395

Re: RFC: Change minimum Python requirement to 2.?

Posted by Greg Stein <gs...@gmail.com>.
On Tue, Jan 13, 2009 at 14:32, Stefan Sperling <st...@elego.de> wrote:
>...
> Not necessarily. Some packaging systems offer the opportunity to run
> regression tests as part of the package build. OpenBSD has a 'make
> regress' target in the ports tree, for example, and the subversion port
> makes use of it. It's a nice way of smoke-testing a freshly compiled set
> of binaries.

Neat. And they can "freshly compile" a new Python :-D

Cheers,
-g

Re: RFC: Change minimum Python requirement to 2.?

Posted by Stefan Sperling <st...@elego.de>.
On Tue, Jan 13, 2009 at 02:20:52PM -0800, Justin Erenkrantz wrote:
> However,
> I think it's completely fair to say that in order to run the test
> suites for Subversion 1.6+, you are required to use Python 2.4+.

Yes.

> If you're running the test suites, welcome - you're now a developer.  =)

Not necessarily. Some packaging systems offer the opportunity to run
regression tests as part of the package build. OpenBSD has a 'make
regress' target in the ports tree, for example, and the subversion port
makes use of it. It's a nice way of smoke-testing a freshly compiled set
of binaries.

Stefan

Re: RFC: Change minimum Python requirement to 2.?

Posted by Justin Erenkrantz <je...@apache.org>.
On Tue, Jan 13, 2009 at 1:03 PM, Greg Stein <gs...@gmail.com> wrote:
> We're expecting effort to support Python < 2.4, with no measurable
> return on our work. We don't know that anybody *needs* to use old
> versions.
>
> We should just switch to Python 2.4. The requirement is only for devs
> and packagers. NOT for users. This is quite a small group of people,
> relatively speaking. I think we can expect any of these people to have
> Python 2.4 handy.

It's also possible that many packagers would not need Python either -
they could conceivably just take the official releases (produced by an
RM who has Python 2.4+) and apply the packaging on top of that.

Since the thread started with gen-make.py, I don't know if this also
implies altering the requirements for the Python test suites which
*could* much more conceivably be run by users and packagers.  However,
I think it's completely fair to say that in order to run the test
suites for Subversion 1.6+, you are required to use Python 2.4+.  If
you're running the test suites, welcome - you're now a developer.  =)

> At this point, we haven't heard anybody come up with a scenario for <
> 2.4, so let's make the switch.

+1.  -- justin

Re: RFC: Change minimum Python requirement to 2.?

Posted by Greg Stein <gs...@gmail.com>.
On Tue, Jan 13, 2009 at 12:30, Blair Zajac <bl...@orcaware.com> wrote:
> Paul Burba wrote:
>> On Mon, Jan 12, 2009 at 4:41 PM, Blair Zajac <bl...@orcaware.com> wrote:
>>> Paul Burba wrote:
>>>> On Fri, Jan 9, 2009 at 10:23 PM, David Glasser <gl...@davidglasser.net>
>>>> wrote:
>>>>> I'm pretty sure we decided to do this several times already. Search for
>>>>> mail
>>>>> from me about it...
>>>>>
>>>>> --dave
>>>> Dave found this other thread he mentioned above:
>>>> http://svn.haxx.se/dev/archive-2007-10/0867.shtml
>>>>
>>>> Blair, in that thread you objected to 2.4 at the time because:
>>>>
>>>>> I suggest bumping to 2.2 since RHEL 4, which is still in a lot
>>>>> of places, is on 2.3. To have to build Python 2.4 or greater
>>>>> just to test svn on RHEL 4 would be a pain.
>>>>>
>>>>> So bump to Python 2.2 but include subprocess.py with the svn test suite.
>>>> Blair, does your previous objection still hold today?
>>> How much work is it to support 2.3 in the current code?  I just saw one
>>> commit you had r35193.
>>
>> Hi Blair,
>>
>> Probably not that much, after r35193 I can successfully run the tests
>> with 2.3.5, though I still can't do a fresh rebuild of Subversion with
>> 2.3.5 (I still think that is probably a minor problem, though I
>> haven't tried to fix that since I have only been interested thus far
>> in getting the buildbots working and supporting running the tests in
>> parallel on my own Windows box).
>
> I updated to r35212 and setting PATH=/usr/bin:/bin and PYTHON=/usr/bin/python on
> our Centos 4 box everything worked fine.
>
>> So it mostly comes down to the fact that we are trying to maintain the
>> two different code paths for 2.4+ and < 2.4 and does the effort of
>> doing so justify the benefit of supporting < 2.4...
>
> I think we need to maintain compatibility with tools that build Subversion on
> recent OSes.  The fix in r35193, if not applied, would require the Subversion
> packager to build Python and then Subversion.  I think overall it's probably
> less effort for us to do this work in one place then require anyone on an older
> OS to build Python.

We're expecting effort to support Python < 2.4, with no measurable
return on our work. We don't know that anybody *needs* to use old
versions.

We should just switch to Python 2.4. The requirement is only for devs
and packagers. NOT for users. This is quite a small group of people,
relatively speaking. I think we can expect any of these people to have
Python 2.4 handy.

At this point, we haven't heard anybody come up with a scenario for <
2.4, so let's make the switch.

Cheers,
-g

Re: RFC: Change minimum Python requirement to 2.?

Posted by km...@rockwellcollins.com.
dglasser@gmail.com wrote on 01/13/2009 03:22:49 PM:

> This discussion is completely idiotic.
> 
> On the one hand, we're scared about bumping the version of a tool that
> is only used by developers (not tarball consumers) and the test suite
> to a version released in November 2004, and which is run as an
> executable so you can incredibly easily point the build at a locally
> built copy of the tool.
> 
> At the same time, we're getting close to shipping Subversion in a
> state where building *libsvn_subr* requires you to have a version of
> sqlite released in June 2007.  And because this is "a linked in
> library", building your own copy isn't as simple as setting one
> environment variable or editing a shebang line... in fact, despite
> asking for help months ago, I still have not figured out how to
> successfully build trunk on my work computer (a Ubuntu box with an old
> version of sqlite installed globally).

FYI,  I only got trunk compiling on RHEL4 after manually upgrading
the global version.  (I finally just gave up on getting a local
install working.)  Luckily I have sudo on that machine, or I would
no longer be able to build trunk on it either...

So someone else feels some of your pain too!

Kevin R.

> --dave
> 
> (It's a good thing nobody is paying me to work full time on Subversion
> any more!)
> 
> On Tue, Jan 13, 2009 at 3:30 PM, Blair Zajac <bl...@orcaware.com> wrote:
> > Paul Burba wrote:
> >>
> >> On Mon, Jan 12, 2009 at 4:41 PM, Blair Zajac <bl...@orcaware.com> 
wrote:
> >>>
> >>> Paul Burba wrote:
> >>>>
> >>>> On Fri, Jan 9, 2009 at 10:23 PM, David Glasser
> >>>> <gl...@davidglasser.net>
> >>>> wrote:
> >>>>>
> >>>>> I'm pretty sure we decided to do this several times already. 
Search for
> >>>>> mail
> >>>>> from me about it...
> >>>>>
> >>>>> --dave
> >>>>
> >>>> Dave found this other thread he mentioned above:
> >>>> http://svn.haxx.se/dev/archive-2007-10/0867.shtml
> >>>>
> >>>> Blair, in that thread you objected to 2.4 at the time because:
> >>>>
> >>>>> I suggest bumping to 2.2 since RHEL 4, which is still in a lot
> >>>>> of places, is on 2.3. To have to build Python 2.4 or greater
> >>>>> just to test svn on RHEL 4 would be a pain.
> >>>>>
> >>>>> So bump to Python 2.2 but include subprocess.py with the svn test
> >>>>> suite.
> >>>>
> >>>> Blair, does your previous objection still hold today?
> >>>
> >>> How much work is it to support 2.3 in the current code?  I just saw 
one
> >>> commit you had r35193.
> >>
> >> Hi Blair,
> >>
> >> Probably not that much, after r35193 I can successfully run the tests
> >> with 2.3.5, though I still can't do a fresh rebuild of Subversion 
with
> >> 2.3.5 (I still think that is probably a minor problem, though I
> >> haven't tried to fix that since I have only been interested thus far
> >> in getting the buildbots working and supporting running the tests in
> >> parallel on my own Windows box).
> >
> > I updated to r35212 and setting PATH=/usr/bin:/bin and
> > PYTHON=/usr/bin/python on our Centos 4 box everything worked fine.
> >
> >> So it mostly comes down to the fact that we are trying to maintain 
the
> >> two different code paths for 2.4+ and < 2.4 and does the effort of
> >> doing so justify the benefit of supporting < 2.4...
> >
> > I think we need to maintain compatibility with tools that build 
Subversion
> > on recent OSes.  The fix in r35193, if not applied, would require the
> > Subversion packager to build Python and then Subversion.  I think 
overall
> > it's probably less effort for us to do this work in one place then 
require
> > anyone on an older OS to build Python.
> >
> > Blair
> >
> 
> 
> 
> -- 
> glasser@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1024434

Re: RFC: Change minimum Python requirement to 2.?

Posted by David Glasser <gl...@davidglasser.net>.
This discussion is completely idiotic.

On the one hand, we're scared about bumping the version of a tool that
is only used by developers (not tarball consumers) and the test suite
to a version released in November 2004, and which is run as an
executable so you can incredibly easily point the build at a locally
built copy of the tool.

At the same time, we're getting close to shipping Subversion in a
state where building *libsvn_subr* requires you to have a version of
sqlite released in June 2007.  And because this is "a linked in
library", building your own copy isn't as simple as setting one
environment variable or editing a shebang line... in fact, despite
asking for help months ago, I still have not figured out how to
successfully build trunk on my work computer (a Ubuntu box with an old
version of sqlite installed globally).

--dave

(It's a good thing nobody is paying me to work full time on Subversion
any more!)

On Tue, Jan 13, 2009 at 3:30 PM, Blair Zajac <bl...@orcaware.com> wrote:
> Paul Burba wrote:
>>
>> On Mon, Jan 12, 2009 at 4:41 PM, Blair Zajac <bl...@orcaware.com> wrote:
>>>
>>> Paul Burba wrote:
>>>>
>>>> On Fri, Jan 9, 2009 at 10:23 PM, David Glasser
>>>> <gl...@davidglasser.net>
>>>> wrote:
>>>>>
>>>>> I'm pretty sure we decided to do this several times already. Search for
>>>>> mail
>>>>> from me about it...
>>>>>
>>>>> --dave
>>>>
>>>> Dave found this other thread he mentioned above:
>>>> http://svn.haxx.se/dev/archive-2007-10/0867.shtml
>>>>
>>>> Blair, in that thread you objected to 2.4 at the time because:
>>>>
>>>>> I suggest bumping to 2.2 since RHEL 4, which is still in a lot
>>>>> of places, is on 2.3. To have to build Python 2.4 or greater
>>>>> just to test svn on RHEL 4 would be a pain.
>>>>>
>>>>> So bump to Python 2.2 but include subprocess.py with the svn test
>>>>> suite.
>>>>
>>>> Blair, does your previous objection still hold today?
>>>
>>> How much work is it to support 2.3 in the current code?  I just saw one
>>> commit you had r35193.
>>
>> Hi Blair,
>>
>> Probably not that much, after r35193 I can successfully run the tests
>> with 2.3.5, though I still can't do a fresh rebuild of Subversion with
>> 2.3.5 (I still think that is probably a minor problem, though I
>> haven't tried to fix that since I have only been interested thus far
>> in getting the buildbots working and supporting running the tests in
>> parallel on my own Windows box).
>
> I updated to r35212 and setting PATH=/usr/bin:/bin and
> PYTHON=/usr/bin/python on our Centos 4 box everything worked fine.
>
>> So it mostly comes down to the fact that we are trying to maintain the
>> two different code paths for 2.4+ and < 2.4 and does the effort of
>> doing so justify the benefit of supporting < 2.4...
>
> I think we need to maintain compatibility with tools that build Subversion
> on recent OSes.  The fix in r35193, if not applied, would require the
> Subversion packager to build Python and then Subversion.  I think overall
> it's probably less effort for us to do this work in one place then require
> anyone on an older OS to build Python.
>
> Blair
>



-- 
glasser@davidglasser.net | langtonlabs.org | flickr.com/photos/glasser/

Re: RFC: Change minimum Python requirement to 2.?

Posted by Blair Zajac <bl...@orcaware.com>.
Paul Burba wrote:
> On Mon, Jan 12, 2009 at 4:41 PM, Blair Zajac <bl...@orcaware.com> wrote:
>> Paul Burba wrote:
>>> On Fri, Jan 9, 2009 at 10:23 PM, David Glasser <gl...@davidglasser.net>
>>> wrote:
>>>> I'm pretty sure we decided to do this several times already. Search for
>>>> mail
>>>> from me about it...
>>>>
>>>> --dave
>>> Dave found this other thread he mentioned above:
>>> http://svn.haxx.se/dev/archive-2007-10/0867.shtml
>>>
>>> Blair, in that thread you objected to 2.4 at the time because:
>>>
>>>> I suggest bumping to 2.2 since RHEL 4, which is still in a lot
>>>> of places, is on 2.3. To have to build Python 2.4 or greater
>>>> just to test svn on RHEL 4 would be a pain.
>>>>
>>>> So bump to Python 2.2 but include subprocess.py with the svn test suite.
>>> Blair, does your previous objection still hold today?
>> How much work is it to support 2.3 in the current code?  I just saw one
>> commit you had r35193.
> 
> Hi Blair,
> 
> Probably not that much, after r35193 I can successfully run the tests
> with 2.3.5, though I still can't do a fresh rebuild of Subversion with
> 2.3.5 (I still think that is probably a minor problem, though I
> haven't tried to fix that since I have only been interested thus far
> in getting the buildbots working and supporting running the tests in
> parallel on my own Windows box).

I updated to r35212 and setting PATH=/usr/bin:/bin and PYTHON=/usr/bin/python on 
our Centos 4 box everything worked fine.

> So it mostly comes down to the fact that we are trying to maintain the
> two different code paths for 2.4+ and < 2.4 and does the effort of
> doing so justify the benefit of supporting < 2.4...

I think we need to maintain compatibility with tools that build Subversion on 
recent OSes.  The fix in r35193, if not applied, would require the Subversion 
packager to build Python and then Subversion.  I think overall it's probably 
less effort for us to do this work in one place then require anyone on an older 
OS to build Python.

Blair

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1022766

Re: RFC: Change minimum Python requirement to 2.?

Posted by Paul Burba <pt...@gmail.com>.
On Mon, Jan 12, 2009 at 4:41 PM, Blair Zajac <bl...@orcaware.com> wrote:
> Paul Burba wrote:
>>
>> On Fri, Jan 9, 2009 at 10:23 PM, David Glasser <gl...@davidglasser.net>
>> wrote:
>>>
>>> I'm pretty sure we decided to do this several times already. Search for
>>> mail
>>> from me about it...
>>>
>>> --dave
>>
>> Dave found this other thread he mentioned above:
>> http://svn.haxx.se/dev/archive-2007-10/0867.shtml
>>
>> Blair, in that thread you objected to 2.4 at the time because:
>>
>>> I suggest bumping to 2.2 since RHEL 4, which is still in a lot
>>> of places, is on 2.3. To have to build Python 2.4 or greater
>>> just to test svn on RHEL 4 would be a pain.
>>>
>>> So bump to Python 2.2 but include subprocess.py with the svn test suite.
>>
>> Blair, does your previous objection still hold today?
>
> How much work is it to support 2.3 in the current code?  I just saw one
> commit you had r35193.

Hi Blair,

Probably not that much, after r35193 I can successfully run the tests
with 2.3.5, though I still can't do a fresh rebuild of Subversion with
2.3.5 (I still think that is probably a minor problem, though I
haven't tried to fix that since I have only been interested thus far
in getting the buildbots working and supporting running the tests in
parallel on my own Windows box).

So it mostly comes down to the fact that we are trying to maintain the
two different code paths for 2.4+ and < 2.4 and does the effort of
doing so justify the benefit of supporting < 2.4...

> Personally, we're still running on RHEL4, but since RHEL5 is out with Python
> 2.4, I could be convinced to move to Python 2.4.  But we shouldn't move any
> later than that.

...for me it doesn't, but on Windows obtaining and installing the
latest versions of Python is trivial.  But if folks like you are
suddenly stuck having to build Python yourself, and that process is
too cumbersome, then perhaps we should wait.  The problem is, I have
no idea how difficult building Pyton on Linux is, nor how many of our
developers would be affected.  So, do any other Linux developers have
a strong opinion on this?

Paul

Re: RFC: Change minimum Python requirement to 2.?

Posted by Blair Zajac <bl...@orcaware.com>.
Paul Burba wrote:
> On Fri, Jan 9, 2009 at 10:23 PM, David Glasser <gl...@davidglasser.net> wrote:
>> I'm pretty sure we decided to do this several times already. Search for mail
>> from me about it...
>>
>> --dave
> 
> Dave found this other thread he mentioned above:
> http://svn.haxx.se/dev/archive-2007-10/0867.shtml
> 
> Blair, in that thread you objected to 2.4 at the time because:
> 
>> I suggest bumping to 2.2 since RHEL 4, which is still in a lot
>> of places, is on 2.3. To have to build Python 2.4 or greater
>> just to test svn on RHEL 4 would be a pain.
>>
>> So bump to Python 2.2 but include subprocess.py with the svn test suite.
> 
> Blair, does your previous objection still hold today?

How much work is it to support 2.3 in the current code?  I just saw one commit 
you had r35193.

Personally, we're still running on RHEL4, but since RHEL5 is out with Python 
2.4, I could be convinced to move to Python 2.4.  But we shouldn't move any 
later than that.

Blair

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1020254

Re: RFC: Change minimum Python requirement to 2.?

Posted by Paul Burba <pt...@gmail.com>.
On Fri, Jan 9, 2009 at 10:23 PM, David Glasser <gl...@davidglasser.net> wrote:
> I'm pretty sure we decided to do this several times already. Search for mail
> from me about it...
>
> --dave

Dave found this other thread he mentioned above:
http://svn.haxx.se/dev/archive-2007-10/0867.shtml

Blair, in that thread you objected to 2.4 at the time because:

> I suggest bumping to 2.2 since RHEL 4, which is still in a lot
> of places, is on 2.3. To have to build Python 2.4 or greater
> just to test svn on RHEL 4 would be a pain.
>
> So bump to Python 2.2 but include subprocess.py with the svn test suite.

Blair, does your previous objection still hold today?

Michael, in the same thread you also had some objections to 2.4, do
those still hold as well?

Paul

Re: RFC: Change minimum Python requirement to 2.?

Posted by David Glasser <gl...@davidglasser.net>.
I'm pretty sure we decided to do this several times already. Search for mail
from me about it...

--dave

On Jan 9, 2009 2:30 PM, "Paul Burba" <pt...@gmail.com> wrote:

Currently INSTALL states that we require Python 2.2 or newer.

While trying to track down some testing bugs on Windows I downgraded
from Python 2.6.2 to 2.3.5 and, changing nothing else, re-ran the test
suite.  The tests would not run to completion and hung in many places.
 Then I tried to rebuild trunk (r35135) with 2.3.5 and the build
simply fails:

C:\SVN\src-trunk>gen-make.py -t vcproj --vsnet-version=2008
--with-neon=C:\SVN\src-trunk\neon --with-httpd=C:\SVN\httpd-2.2.10
--with-openssl=C:\SVN\openssl --with-berkeley-db=C:\S
VN\bdb --with-apr=C:\SVN\httpd-2.2.10\srclib\apr
--with-apr-util=C:\SVN\httpd-2.2.10\srclib\apr-util
--with-zlib=C:\SVN\zlib --enable-bdb-in-apr-util
--with-serf=C:\SVN\serf --with
-swig=C:\SVN\swig --with-junit="C:\Program
Files\Java\jdk1.6.0_07\jre\lib\ext\junit-4.4.jar"
--with-sqlite=C:\SVN\sqlite
Found libdb47.lib in C:\SVN\bdb
Generating for VS.NET 2008
Could not detect Ruby version.
 Ruby bindings will be linked with msvcrt-ruby18.lib
Found installed perl version number.
 Perl bindings will be linked with perl510.lib
Found installed SWIG version 1.3.36
Using SWIG library directory C:\SVN\swig\Lib
Found JDK version 1.6 in C:\Program Files\Java\jdk1.6.0_07
Found SQLite version 3.6.3
Found neon version 0.28.2
Wrote: build\win32\build_zlib.bat
Wrote: build\win32\build_locale.bat
Traceback (most recent call last):
 File "C:\SVN\src-trunk\gen-make.py", line 288, in ?
   main(conf, gentype, skip_depends=skip, other_options=rest.list)
 File "C:\SVN\src-trunk\gen-make.py", line 40, in main
   generator = gen_module.Generator(fname, verfname, other_options)
 File "build\generator\gen_vcnet_vcproj.py", line 18, in __init__
   'vcnet-vcproj')
 File "build\generator\gen_win.py", line 285, in __init__
   swig.Generator(self.conf, self.swig_exe).write()
 File "build\generator\swig\header_wrappers.py", line 20, in __init__
   generator.swig.Generator.__init__(self, conf, swig_path)
 File "build\generator\swig\__init__.py", line 43, in __init__
   self.swig_libdir = _exec.output([self.swig_path, "-swiglib"], strip=1)
 File "build\generator\util\executable.py", line 44, in output
   (stdin, stdout) = os.popen4(cmd)
TypeError: popen4() argument 1 must be string, not list

Now this build problem is simple to fix, but it, and the testing
failures, make me wonder if any active developers are using "older"
versions of Python.  Perhaps it is time we bumped the minimum
requirement?

I suggest 2.4 because there are several places in the build and test
environment where different code paths are followed for Python < 2.4
and from my preliminary testing these code paths don't work correctly.
 So either we need to fix them or remove them.

Any objections to bumping the minimum version?  If not, should it be
2.4 or something even newer?

Thoughts appreciated...

Paul