编译Subversion的Python绑定

Binary is locate in google code http://code.google.com/p/svn-python-win32/

This is subversion python bindings for windows.Upgrade from python2.5 to python2.7.2, I can’t find suitable svn-python.And the major problem is apache2.2.22 which download from http://httpd.apache.org/download.cgi with mod_wsgi and python2.7.2 throw “Runtime Error”. Because apache build with vs6.0,and python2.7.2 build with vs2008!

So I build apache from source with vs2008,then win32svn’s svn-python throw runtime error!And I build subversion with vs2008 and apache’s apr finally.So everything ok:)

编译结果在 google code http://code.google.com/p/svn-python-win32/

这个是SVN的Python绑定。从Python2.5升级到Python2.7.2,发现没有合适的svn-python,并且这个python和官方的apache有VC运行时库冲突:(
后来发现Apache是用VC6编译的,而Python是用VS2008编译的!于是开始用vs2008从源代码编译Apache,然后发现以前能用的win32svn项目的svn-python不能用了,不得已自己用Apache的apr重新编译svn,所幸成功了。


所有的文件

  • httpd-2.2.22-win32-src.zip
  • Python-2.7.2.tar
  • subversion-1.6.17.tar
  • subversion-deps-1.6.17.tar
  • db-4.6.18.tar

编译的过程
1. 先编译httpd, 安装到%ROOT_PATH%\Apache2vc9,然后拷贝所有的lib到以下的目录”%ROOT_PATH%\Apache2vc9\Debug”,”%ROOT_PATH%\Apache2vc9\Release”

2. 修改 zlib/win32/Makefile.msc
添加 “inffast.obj”

3. 修改 expat.h “%ROOT_PATH%\Apache2vc9\include\expat.h” 注释掉 XMLIMPORT 这一行。

Subversion的配置

This entry was posted in Memo and tagged , , , , , , , , . Bookmark the permalink.