def subvertpy_modules(basemodule):
return [
- SvnExtension("%s.client" % basemodule, [source_path(n) for n in "client.c", "editor.c", "util.c", "ra.c", "wc.c"], libraries=["svn_client-1", "svn_subr-1"]),
- SvnExtension("%s.ra" % basemodule, [source_path(n) for n in "ra.c", "util.c", "editor.c"], libraries=["svn_ra-1", "svn_delta-1", "svn_subr-1"]),
+ SvnExtension("%s.client" % basemodule, [source_path(n) for n in "client.c", "editor.c", "util.c", "_ra.c", "wc.c"], libraries=["svn_client-1", "svn_subr-1"]),
+ SvnExtension("%s._ra" % basemodule, [source_path(n) for n in "_ra.c", "util.c", "editor.c"], libraries=["svn_ra-1", "svn_delta-1", "svn_subr-1"]),
SvnExtension("%s.repos" % basemodule, [source_path(n) for n in "repos.c", "util.c"], libraries=["svn_repos-1", "svn_subr-1"]),
SvnExtension("%s.wc" % basemodule, [source_path(n) for n in "wc.c", "util.c", "editor.c"], libraries=["svn_wc-1", "svn_subr-1"])
]
return True
try:
- import client, ra, repos, wc
- for x in client, ra, repos, wc:
+ import client, _ra, repos, wc
+ for x in client, _ra, repos, wc:
if not _check_mtime(x):
warn("subvertpy extensions are outdated and need to be rebuilt")
break
{ NULL, }
};
-void initra(void)
+void init_ra(void)
{
static apr_pool_t *pool;
PyObject *mod;
return;
svn_ra_initialize(pool);
- mod = Py_InitModule3("ra", ra_module_methods, "Remote Access");
+ mod = Py_InitModule3("_ra", ra_module_methods, "Remote Access");
if (mod == NULL)
return;
--- /dev/null
+# Copyright (C) 2006-2008 Jelmer Vernooij <jelmer@samba.org>
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+"""Python bindings for Subversion."""
+
+__author__ = "Jelmer Vernooij <jelmer@samba.org>"
+
+from _ra import *