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

"make clean-swig-py" doesn't remove generated Python 3-specific SWIG files

From: Manuel Jacob <me_at_manueljacob.de>
Date: Wed, 17 Jun 2020 17:44:24 +0200

I tried to build SVN with bindings for Python 2. I followed the
instructions, but it didn't work:

# Step 1 of subversion/bindings/swig/INSTALL
# ... I installed SWIG 2 and passed --with-python=/usr/bin/python2.7 to
./configure.
tar xaf ~/Downloads/subversion-1.14.0.tar.bz2
cd subversion-1.14.0
# Step 2 of subversion/bindings/swig/INSTALL
./configure --enable-maintainer-mode --prefix=/tmp/subversion_target
PYTHON=/usr/bin/python2.7 SWIG=/usr/bin/swig-2
make -j4
make install
# Step 3 of subversion/bindings/swig/INSTALL
make clean-swig-py
make swig-py
make check-swig-py

The last command fails with:
if [ "LD_LIBRARY_PATH" = "DYLD_LIBRARY_PATH" ]; then for d in
/home/manu/test-svn-build/subversion-1.14.0/subversion/bindings/swig/python/libsvn_swig_py
/home/manu/test-svn-build/subversion-1.14.0/subversion/bindings/swig/python/../../../libsvn_*;
do if [ -n "$DYLD_LIBRARY_PATH" ]; then
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$d/.libs"; else
LD_LIBRARY_PATH="$d/.libs"; fi; done; export LD_LIBRARY_PATH; fi; \
cd
/home/manu/test-svn-build/subversion-1.14.0/subversion/bindings/swig/python;
\
   /usr/bin/python2.7
/home/manu/test-svn-build/subversion-1.14.0/subversion/bindings/swig/python/tests/run_all.py
Traceback (most recent call last):
   File
"/home/manu/test-svn-build/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/manu/test-svn-build/subversion-1.14.0/subversion/bindings/swig/python/tests/mergeinfo.py",
line 22, in <module>
     from svn import core, repos, fs
   File
"/home/manu/test-svn-build/subversion-1.14.0/subversion/bindings/swig/python/svn/core.py",
line 26, in <module>
     from libsvn.core import *
   File
"/home/manu/test-svn-build/subversion-1.14.0/subversion/bindings/swig/python/libsvn/core.py",
line 152
     def apr_initialize() -> "apr_status_t":

Am I missing something?
Received on 2020-06-17 17:53:05 CEST

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

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