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

Re: [Patch] Support building with SWIG 4 on Python 3.x

From: Jun Omae <jun66j5_at_gmail.com>
Date: Thu, 14 Nov 2019 22:17:45 +0900

(Posting to dev list, again...)

On Thu, Nov 14, 2019 at 1:47 AM Julian Foad <julianfoad_at_apache.org> wrote:
> Nathan wrote in another thread:
> > Note: If the patch contributed by Jun Omae a little earlier is
> > committed, the text regarding SWIG 4.0.0+ in INSTALL will need to be
> > adjusted accordingly. I have not changed it because the patch has not
> > been committed yet.
>
> Perhaps someone could commit this if there are no other concerns with
> it, and adjust INSTALL at the same time?
>
> - Julian

Updated proposed patch, including a change of subversion/bindings/swig/INSTALL.

[[[
Support building with SWIG 4 on Python 3.x

* build/ac-macros/swig.m4 (SVN_FIND_SWIG):
   Allow building with SWIG 4+, and add -modern option when Python 3 and
   SWIG 3.x are detected.

* subversion/bindings/swig/INSTALL
  (BUILDING SWIG BINDINGS FOR SVN ON UNIX, Step 1):
   Update supported SWIG versions for Python 3 bindings.

* subversion/bindings/swig/include/proxy.py
   Use _get_instance_attr and _set_instance_attr.

* subversion/bindings/swig/include/proxy.swg
   (_get_instance_attr): New function to get an instance attribute
   without metadata for new-style and old-style classes.
   (_set_instance_attr): New function to set an instance attribute for
   new-style and old-style classes.
]]]

-- 
Jun Omae <jun66j5_at_gmail.com> (大前 潤)

Received on 2019-11-14 14:18:08 CET

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