I get the following error when I try executing 

$ make check-ctypes-python

from build directory other then source directory.

-----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/run_all.py", line 22, in <module>
    import setup_path
  File 
"/home/noorul/projects/subversion/subversion/bindings/ctypes-python/test/se
tup_path.py", line 31, in <module>                                              
 
    import csvn.core
  File 
"/home/noorul/projects/subversion/subversion/bindings/ctypes-python/csvn/co
re/__init__.py", line 20, in <module>                                           
 
    import functions
ImportError: No module named functions
make: *** [check-ctypes-python] Error 1
-----------------------------------------------------------------------

Attached is the patch to fix this.

Log
[[[

Fix minor bug.

* build/run_ctypesgen.sh: Use source directory as target instead of build
  directory.

]]]

Thanks and Regards
Noorul

Index: build/run_ctypesgen.sh
===================================================================
--- build/run_ctypesgen.sh      (revision 1029553)
+++ build/run_ctypesgen.sh      (working copy)
@@ -86,4 +86,4 @@
 (cat $abs_srcdir/$cp_relpath/csvn/core/functions.py.in; \
  sed -e '/^FILE =/d' $output | \
  perl -pe 's{(\s+\w+)\.restype = POINTER\(svn_error_t\)}{\1.restype = 
POINTER(svn_error_t)\n\1.errcheck = _svn_errcheck}' \
- ) > $abs_builddir/$cp_relpath/csvn/core/functions.py
+ ) > $abs_srcdir/$cp_relpath/csvn/core/functions.py

Reply via email to