With svn-1.14.0, if "python" is Python 2 (it's still 2.6.6 on CentOS7),
and --with-swig is given, make swig-py succeeds, but check-swig-py fails
with:
cd /usr/local/src/subversion-1.14.0/subversion/bindings/swig/python; \
/usr/local/bin/python /usr/local/src/subversion-1.14.0/subversion/bindings/swig/python/tests/run_all.py
Traceback (most recent call last):
File "/usr/local/src/subversion-1.14.0/subversion/bindings/swig/python/tests/run_all.py", line 23, in <module>
import mergeinfo, core, client, delta, checksum, pool, fs, ra, wc, repository, \
File "/home/local/src/subversion-1.14.0/subversion/bindings/swig/python/tests/mergeinfo.py", line 22, in <module>
from svn import core, repos, fs
File "/home/local/src/subversion-1.14.0/subversion/bindings/swig/python/svn/core.py", line 26, in <module>
from libsvn.core import *
File "/home/local/src/subversion-1.14.0/subversion/bindings/swig/python/libsvn/core.py", line 152
def apr_initialize() -> "apr_status_t":
^
SyntaxError: invalid syntax
make: *** [Makefile:944: check-swig-py] Error 1
It would be nice if the configure script bailed out in this
configuration instead of leaving it for a painful Python message after
building everything. Assuming it's intentional that Python 2 isn't
supported any more.
Also, py3c is apparently necessary. Again it would be nice if configure
bailed out if it's not present.
After discovering that, I installed the CentOS packages python3 and
python3-devel and swig3 (all required, it seemed) and configured with
PYTHON=python3, and gave --with-py3c=`pwd`/py3c (after downloading py3c
via getdeps.sh). This worked.
I see another person reported problems with the Python bindings without
swig. My situation is with swig. Maybe you already have a fix for this
one too, but just thought I'd report ... --best, karl.
Received on 2020-06-01 23:02:11 CEST