INSTALL.html 3.29 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.5.x or 1.6.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 V6.2.2</a> to build against Python 2 or Python 3 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 43
<p>Note: You must build with MSVC 2003.NET for python 2.4 or Python 2.5.</p>
<p>Note: You must build with MSVC 2008 (9.0) for Python 2.6 or later and python 3.0 or later.</p>
44 45

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

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

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

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

<ol>
65 66
<li>Install subversion.
<br />When installing from packages you will need to install the <i>devel</i> packages as well. For example on Fedora/Redhat subversion-devel, apr-devel, apr-util-devel and their dependancies.</li>
67
<li>Get the pysvn source code</li>
68
<li>For Python 2 or Python 3 builds: <code>tar xzf pycxx-6.2.1.tar.gz</code> into <em>extdir</em>/Import if not using a source kit</li>
69
<li><code>cd Source</code></li>
70
<li>For Python 2 builds: backport the PySVN code using <code>python setup.py backport</code></li>
71 72 73 74
<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>
75 76
</ol>

77 78 79
<p>Install pysvn by copying the following from Extension/Source
to python site-specific directory.</p>
<ul>
80 81
<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>
82
<li><code>cp pysvn/_pysvn*.so <em>python-libdir</em>/site-packages/pysvn</code></li>
83
</ul>
84 85
</body>
</html>