INSTALL.html 2.18 KB
Newer Older
1 2
<html>
<head>
3 4 5 6 7
<style type="text/css">
h1, h2, h3 {color: #8080ff;}
code {background-color: #dddddd; }

</style>
8 9 10 11 12 13 14 15 16 17
<title>Building pysvn Extension</title>
</head>
<body>

<h1>Building pysvn Extension</h1>

<h2>Prerequisites</h2>

<p>To build pysvn you will require:</p>
<ul>
18 19
<li><a href="http://subversion.tigris.org">subversion</a> 1.1.x or 1.2.x
<li><a href="http://sourceforge.net/project/showfiles.php?group_id=3180">PyCXX V5.3.4</a> which is included in the pysvn source kit.
20 21 22 23 24
</ul>

<h3>Building on win32</h3>
<p>These instructions assume you have Microsoft Visual C++ 6.0 to compile the code
and <a href="http://www.jrsoftware.org/">INNO</a> 4.0.10 to create the installation kit.</p>
25 26
<p>Note: You must build with MSVC 6.0 as python 2.3 and earlier was built with that version.</p>
<p>Note: You must build with MSVC 2003.NET for python 2.4 or later.</p>
27 28

<ol>
29
<li>build subversion (tested with SVN 1.1.4 and SVN 1.2.3)
30
<li>fetch and expand the pysvn source code into <em>extdir</em>
31
<li>Expand pycxx_5_3_4.tar.gz into <em>extdir</em>\Import if not using a source kit
32
<li>edit Builder\builder_custom_init.cmd to match the locations of the sources.
33 34 35
<li><code>cd Builder</code>
<li><code>builder_custom_init.cmd</code>
<li><code>nmake -f win32.mak build</code>
36 37 38 39 40 41
</ol>

<p>To install the built kit</p>

<ol>
<li>Uninstall any previous kit (control panel's Add/Remove programs)
42
<li><code>nmake -f win32.mak install</code>
43 44
</ol>

45
<h3>Building on unix and Mac OS X systems.</h3>
46 47

<ol>
48
<li>Install subversion
49
<li>get the pysvn source code
50 51
<li><code>tar xzf pycxx_5_3_4.tar.gz</code> into <em>extdir</em>/Import if not using a source kit
<li><code>cd Source</code>
52 53
<li>Create the Makefile using <code>python setup.py configure</code>
<li><code>make</code>
54
<li><code>cd Tests</code>
55
<li>Test pysvn by running <code>make -f unix.mak PYTHON=<em>path-to-python-to-use</em></code>
56 57
</ol>

58 59 60 61 62 63 64
<p>Install pysvn by copying the following from Extension/Source
to python site-specific directory.</p>
<ul>
<li><code>mkdir <em>python-libdir</em>/site-packages/pysvn</code>
<li><code>cp pysvn/__init__.py <em>python-libdir</em>/site-packages/pysvn</code>
<li><code>cp pysvn/_pysvn.so <em>python-libdir</em>/site-packages/pysvn</code>
</ul>
65 66
</body>
</html>