Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Apr 2020 21:46:07 GMT
From:      futatuki@bsdclub.org
To:        freebsd-ports@freebsd.org
Cc:        futatuki@yf.bsdclub.org
Subject:   Re: FreeBSD Port: devel/py-subversion - Python 3 flavor?
Message-ID:  <200424064607.M0194799@mkii.yf.bsdclub.org>

next in thread | raw e-mail | index | archive | help
I posted it from wrong email address so I repost ...

------- Forwarded Message
To: lev@FreeBSD.org
Cc: dan@langille.org, freebsd-ports@freebsd.org, futatuki@yf.bsdclub.org
Subject: Re: FreeBSD Port: devel/py-subversion - Python 3 flavor?
In-Reply-To: Your message of "Thu, 23 Apr 2020 18:37:53 +0300".
	<4455c880-71d0-c90d-18ce-b1497d3d7dda@FreeBSD.org>
From: Yasuhito FUTATSUKI <futatuki@yf.bsdclub.org>
Message-ID: <200424061857.M0194579@mkii.yf.bsdclub.org>

Hi,

In article <4455c880-71d0-c90d-18ce-b1497d3d7dda@FreeBSD.org>
lev@FreeBSD.org writes:

> On 23.04.2020 17:43, Dan Langille wrote:
> 
>  subversion 1.14.0 which is RC2 now will be python3 only.

This is partly incorrect. Upcoming subversion 1.14.0 will still allow
to build SWIG python 2 binding. We are checking 'make check-swig-py'
both of with Python 2.7 and with Python 3.x.

However,

* subversion 1.14.0 release tarball will be shipped with SWIG generated
 Python bindings source code only for Python 3. To build Python 2 bindings,
 SWIG is needed.  
* Python 2 bindings and Python 3 bindings is conflict to install,
  because both of them requires mutual incompatible libsvn-swig_py-1.so  
  each other

Please see subversion/binding/swig/INSTALL in subversion source tree
for detail.

And these are not related support for SWIG Python bindings itself
directly, but better to know:

* Python application using Subversion SWIG Python bindings also need to
  modify to support Python 3. Especially distinction between bytes and
  str will be needed. All char * type in C API are mapped to bytes,
  although it accept str for input.
* Support for Python 3 for scripts in tools/ subdirectory is very
  poor status. 
  (See https://cwiki.apache.org/confluence/display/SVN/Subversion%27s+Python+3+Support+Status for detail) 

I, myself, use tools/hook-scripts/mailer/mailer.py for commit mail,
it doesn't work with Python 3.  I also use ViewVC (devel/viewvc,
https://github.com/viewvc/viewvc) but its Python 3 support is
in progress.
 
Cheers,
 -- 
Yasuhito FUTATSUKI <futatuki@yf.bsdclub.org>

------- End of Forwarded Message

Cheers,
-- 
Yasuhito FUTATSUKI <futatuki@yf.bsdclub.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200424064607.M0194799>