[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Python3 work [was: The run up to Subversion 1.13.0]

From: Yasuhito FUTATSUKI <futatuki_at_poem.co.jp>
Date: Mon, 23 Sep 2019 08:50:08 +0900

On 2019/09/23 6:16, Johan Corveleyn wrote:
> On Sat, Sep 21, 2019 at 10:28 AM Yasuhito FUTATSUKI <futatuki_at_poem.co.jp> wrote:
>>
>> On 2019/09/20 0:44, Daniel Shahaf wrote:
>>> Yasuhito FUTATSUKI wrote on Thu, 19 Sep 2019 06:41 +00:00:
>>
>>>> The FAIL on test_merge_peg3 is a newline style issue on reading file
>>>> in raw mode, which is introduced by my patch.
>>>> (https://svn.apache.org/viewvc/subversion/branches/swig-py3/subversion/bindings/swig/python/tests/client.py?view=annotate#l438)
>>>>
>>>> Rest of those errors and failures are in the tests that were added only
>>>> to swig-py, and it seems most of the causes of them are confusion of
>>>> paths in platform specific format and Subversion's canoical format,
>>>> as the comment in SubversionClientTestCase.test_update4() says.
>>>>
>>>> (I'll try to fix those issues on check-swig-py later, hopefully
>>>> next weekend.)
>>>
>>> Thanks! No rush.
>>
>> Now I re-sync swig-py3 branch with trunk and make a patch addressing
>> issues on testing on other than Unix/Linux platform.
>>
>> I've tested on FreeBSD 11.2, with Python 2.7 and Python 3.6.
>>
>> Could anyone please test it on Windows ?
>
> Tested on Windows 7, and yes, this fixes the previous test failures
> with Python 2.7.16. Thanks!
>
> Test output:
> [[[
> Testing Release configuration on local repository.
> -- Running Swig Python tests --
> ..............s.........................................................................................................
> .................................
> ----------------------------------------------------------------------
> Ran 153 tests in 63.214s
>
> OK (skipped=1)
> ]]]
>

I've commited it, as r1866362. Thanks!

>
> Building with Python 3.7.4 still fails with the same error though (no
> problem, I know your patch wasn't addressing that, just mentioning it
> here for completeness). Consequently I haven't been able to run the
> swig-python tests with python 3.7 yet.
>
> [[[
> c:\python37\include\pytime.h(123): error C4115: 'timeval': named type
> definition in parentheses
> [C:\research\svn\dev\swig-py3\build\win32\vcnet-vcproj\libsvn_swig_py.vcxproj
> ]]]

Here is a patch not to treat C4115 as error, globally. If this makes
it possible to build with Python 3.7 on Windows, then next step can be
to limit to apply this relaxation of compile option to files which
contains "#include <Python.h>" (most of them are generated by swig...).

-- 
Yasuhito FUTATSUKI <futatuki_at_poem.co.jp>

Received on 2019-09-23 01:54:05 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.