INSTALL.html 2.85 KB
Newer Older
1 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 4
<html>
<head>
5 6 7 8 9
<style type="text/css">
h1, h2, h3 {color: #8080ff;}
code {background-color: #dddddd; }

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

<h1>Building pysvn Extension</h1>

<h2>Prerequisites</h2>

<p>To build pysvn you will require:</p>
<ul>
20 21 22 23 24 25 26
<li><a href="http://www.python.org">Python</a> 2.2 or later with these options:
<ul>
<li>Python runtime package
<li>Python development package
<li>Python pyexpat package
</ul>
</li>
27
<li><a href="http://subversion.tigris.org">subversion</a> 1.2.x, 1.3.x or 1.4.x with these options:
28 29 30 31 32
<ul>
<li>Subversion client package
<li>Subversion development package
</ul>
</li>
33
<li><a href="http://sourceforge.net/project/showfiles.php?group_id=3180">PyCXX V5.3.6</a> which is included in the pysvn source kit.</li>
34
</ul>
35 36
<p>Some distributions will split python and subversion into more the one package.</p>
<p>You will need to find all the packages that give you the options listed above.</p>
37 38 39 40

<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>
41
<p>Note: You must build with MSVC 6.0 as python 2.3 and earlier was built with that version.</p>
42
<p>Note: You must build with MSVC 2003.NET for python 2.4, Python 2.5 or later.</p>
43 44

<ol>
45
<li>build subversion (tested with SVN 1.3.2 and svn 1.4.0)</li>
46
<li>fetch and expand the pysvn source code into <em>extdir</em></li>
47
<li>Expand pycxx-5.3.6.tar.gz into <em>extdir</em>\Import if not using a source kit</li>
48 49 50 51
<li>edit Builder\builder_custom_init.cmd to match the locations of the sources.</li>
<li><code>cd Builder</code></li>
<li><code>builder_custom_init.cmd</code></li>
<li><code>nmake -f win32.mak build</code></li>
52 53 54 55 56
</ol>

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

<ol>
57 58
<li>Uninstall any previous kit (control panel's Add/Remove programs)</li>
<li><code>nmake -f win32.mak install</code></li>
59 60
</ol>

61
<h3>Building on unix and Mac OS X systems.</h3>
62 63

<ol>
64 65
<li>Install subversion</li>
<li>get the pysvn source code</li>
66
<li><code>tar xzf pycxx-5.3.6.tar.gz</code> into <em>extdir</em>/Import if not using a source kit</li>
67 68 69 70 71
<li><code>cd Source</code></li>
<li>Create the Makefile using <code>python setup.py configure</code></li>
<li><code>make</code></li>
<li><code>cd Tests</code></li>
<li>Test pysvn by running <code>make</code></li>
72 73
</ol>

74 75 76
<p>Install pysvn by copying the following from Extension/Source
to python site-specific directory.</p>
<ul>
77 78 79
<li><code>mkdir <em>python-libdir</em>/site-packages/pysvn</code></li>
<li><code>cp pysvn/__init__.py <em>python-libdir</em>/site-packages/pysvn</code></li>
<li><code>cp pysvn/_pysvn.so <em>python-libdir</em>/site-packages/pysvn</code></li>
80
</ul>
81 82
</body>
</html>