FreeBSD Port: devel/py-subversion - Python 3 flavor?

futatuki at bsdclub.org futatuki at bsdclub.org
Thu Apr 23 22:07:00 UTC 2020


I posted it from wrong email address so I repost ...

------- Forwarded Message
To: lev at FreeBSD.org
Cc: dan at langille.org, freebsd-ports at freebsd.org, futatuki at 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 at FreeBSD.org>
From: Yasuhito FUTATSUKI <futatuki at yf.bsdclub.org>
Message-ID: <200424061857.M0194579 at mkii.yf.bsdclub.org>

Hi,

In article <4455c880-71d0-c90d-18ce-b1497d3d7dda at FreeBSD.org>
lev at 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 at yf.bsdclub.org>

------- End of Forwarded Message

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


More information about the freebsd-ports mailing list