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

RE: Python 2.6 bindings

From: Cooke, Mark <mark.cooke_at_siemens.com>
Date: Mon, 31 Jan 2011 09:44:41 -0000

Hello,

Note: I have rearranged into chronologoical top-to-bottom order for ease
of reading, see below...

> > -----Original Message-----
> > From: Alina Frey [mailto:afrey_at_modusoperandi.com]
> > Sent: 27 January 2011 20:14
> > To: users_at_subversion.apache.org
> > Subject: Python 2.6 bindings
> >
> > I am new to Subversion. Need to use Subversion with Trac.
> > Trac requires Python, therefore I need the Python bindings,
> > so I downloaded svn-win32-1.6.13_py.zip
> > <http://alagazam.net/svn-1.6.13/svn-win32-1.6.13_py.zip> .
> > Would you please let me know what do I need to do after I
> > extract all the files from svn-win32-1.6.13_py.zip
> > <http://alagazam.net/svn-1.6.13/svn-win32-1.6.13_py.zip> ?
> >
> > Thank you,
> >
> > Alina.
> >
> -----Original Message-----
> From: Cooke, Mark [mailto:mark.cooke_at_siemens.com]
> Sent: Friday, January 28, 2011 3:05 AM
> To: Alina Frey
> Cc: users_at_subversion.apache.org
> Subject: RE: Python 2.6 bindings
>
> Hello,
>
> As you mention alagazam, I will assume you are on windows... However,
> why are you installing 1.6.13 when 1.6.15 is available?
>
> I asked almost this question a while back (on the Trac Users mailing
> list) and did not really get an answer. However, some searching of
> both svn and Trac documentation lead me to write the following notes
> for myself which is what I now follow. Let me know if this works for
> you too (obviously you can ignore the first two steps)...
>
> Upgrading the Python Bindings for Subversion:
> =============================================
>
> Just to complete this thread with the hope of being useful to someone
> else, this is what I did to install the latest svn from Algazam
> onto windoze:
>
> ~ stopped the apache service
>
> ~ uninstalled all previous subversion instances (tidying up really)
>
> ~ ran the Algazam windows .msi installer
>
> ~ copied the latest mod_*.so files from the install location to the
> apache modules directory (overwriting the old ones)
>
> ~ deleted the old svn and libsvn directories from
> C:\Python26\Lib\site-packages
>
> ~ opened the python bindings .zip and copied the two directories
> to site-packages
>
> ~ copied all libsvn\_*.dll files to libsvn\_*.pyd [1]
>
> ~ restarted the server and crossed fingers...
>
> [1] I found this recommended in the t.e.o wiki at TracSubversion...
> http://trac.edgewall.org/wiki/TracSubversion#forPython2.6
>
> In other words, it was fine to just delete the old files from
> site_packages and copy the new ones in there, with just a bit
> of fiddling about!
>
> ~ mark c
>
> -----Original Message-----
> From: Alina Frey [mailto:afrey_at_modusoperandi.com]
> Sent: 28 January 2011 19:05
> To: Cooke, Mark
> Cc: users_at_subversion.apache.org
> Subject: RE: Python 2.6 bindings
>
> Yes, I am on Windows.
> I installed Apache Subversion (Setup-Subversion-1.6.15.msi).
> No previous versions installed.
> You mentioned that I need to stop apache server.
> How do I know if it's running?

On windows installs, there is usually a little system tray applet called
something like 'apache monitor' which will tell you. If it is not
running you can run it from the start menu apache folder. This also
makes it easy to start/stop apache.

In case you are not sure, apache is the common name for the well known
web server software provided by the apache foundation, although I
believe that strictly speaking apache 'httpd' is the web software,
apache do quite a lot of software, now including subversion of course.

You can run both trac and subversion with or without apache, both
approaches have advantages. This is an example why it helps to give
more background info about your setup when posting a question, then help
can be tailored to your needs...

> You mentioned that we need to copy mod_*.so files to the
> apache modules folder. Was I supposed to have an apache
> folder anywhere (where?). Was I supposed to install apache
> separately? Or it's included in Python somewhere?

You do not need apache but have a read of both the subversion red-book
docs [1] and the trac guides [2] to help you decide. If you do decide
on apache, it is a separate download and install and no, it's not
included in python.

[1]
http://svnbook.red-bean.com/nightly/en/svn.serverconfig.choosing.html
[2] http://trac.edgewall.org/wiki/TracInstall

The *.so files are apache loadable modules that you need to get
subversion running behind apache and need to be added to your apache
config. You do not need them if you are running trac and subversion
stand-alone.

> I copied svn and libsvn folders to C:\Python26\Lib\site-packages.
> What did you mean by "copied all libsvn\_*.dll files to
> _*.pyd"? Move all the dll files from under libsvn to one folder
> up and modify the extension to pyd?

No, sorry, I can see why you might think that. No, you just need to
copy all the .pyd files (which is just a DLL with a python-specific
extension) to *.dll but keep them in the same directory. I'm not
totally sure why this is necessary but it does not work properly if you
don't! Did you read the link I included?

> I appreciate any input. Thank you,

No problems, I hope you get it working.

~ mark c
Received on 2011-01-31 10:45:23 CET

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.