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

Re: Build Error when compiling python binding on Windows with VC6 at r25159 or later

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2007-07-12 01:11:10 CEST


On 7/10/07, masaru tsuchiyama <m.tmatma@gmail.com> wrote:
> Hello
> > > Masaru, can you test this out for us? If it works, David's suggestion
> > > sounds like a better general approach.
> > In the Ruby bindings, I see that you used "%clear long long" to clear
> > out the old SWIG typemaps. Does this work in the Python bindings? If
> > so, perhaps we should get rid of this hack to python.swg altogether
> > and just use %clear long long and/or %clear unsigned long long.
> Does anybody make a patch to implement David's suggestion?
> Regards.
> Masaru

The below lets the bindings compile, but I still get errors when
running the tests:

.................................................E.Traceback (most
recent call last):
  File "D:\SVN\src-trunk\subversion\bindings\swig\python\tests\run_all.py",
line 19, in ?
  File "C:\Python24\lib\unittest.py", line 759, in __init__
  File "C:\Python24\lib\unittest.py", line 796, in runTests
    result = self.testRunner.run(self.test)
  File "C:\Python24\lib\unittest.py", line 696, in run
  File "C:\Python24\lib\unittest.py", line 428, in __call__
    return self.run(*args, **kwds)
  File "C:\Python24\lib\unittest.py", line 424, in run
  File "C:\Python24\lib\unittest.py", line 428, in __call__
    return self.run(*args, **kwds)
  File "C:\Python24\lib\unittest.py", line 424, in run
  File "D:\SVN\src-trunk\subversion\bindings\swig\python\tests\trac\test.py",
line 35, in __call__
  File "D:\SVN\src-trunk\subversion\bindings\swig\python\tests\trac\versioncontrol\tests\svn_fs.py",
line 62, in tearDown
  File "C:\Python24\lib\site-packages\libsvn\repos.py", line 59, in
    return apply(_repos.svn_repos_delete, args)
libsvn._core.SubversionException: ("Can't remove ' ': The directory is
not empty. ", 720145)

Index: subversion/bindings/swig/include/svn_global.swg
--- subversion/bindings/swig/include/svn_global.swg (revision 25714)
+++ subversion/bindings/swig/include/svn_global.swg (working copy)
@@ -123,6 +123,9 @@
               apr_seek_where_t, apr_fileperms_t }
 %apply unsigned long { unsigned char, unsigned short, unsigned int, size_t }

+%clear long long;
+%clear unsigned long long;
 /* These typemaps use apr_int64_t so that they will work on Win32 and Unix */
 %typemap (in) long long
   " $1 = ($1_ltype) PyLong_AsLongLong($input); ";

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 12 01:10:41 2007

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

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