sources for download.html [rev. 57575]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>[download] </title>
    <meta content="text/html;charset=ISO-8859-1" name="Content-Type"/>
    <link href="style.css" media="screen" rel="stylesheet" type="text/css"/></head>
  <body>
    <div><a href="http://codespeak.net"><img alt="py lib" height="114" id="pyimg" src="http://codespeak.net/img/pylib.png" width="154"/></a></div>
    <div id="metaspace">
      <div class="project_title">[download] </div>
      <div id="menubar"><a class="menu" href="index.html">index</a> <a class="menu" href="../../apigen/api/index.html">api</a> <a class="menu" href="../../apigen/source/index.html">source</a> <a class="menu" href="contact.html">contact</a> <a class="menu" href="download.html">download</a></div></div>
    <div id="contentspace">
      <div id="docinfoline">
        <div style="float: right; font-style: italic;"> modified Aug 21, 2008 by holger krekel,,,</div></div>
<div class="section">
<h1><a id="easy-install-py" name="easy-install-py">&quot;easy_install py&quot;</a></h1>
<p>With a working <a class="reference" href="http://pypi.python.org/pypi/setuptools">setuptools installation</a> you can install from the command line:</p>
<pre class="literal-block">
easy_install py
</pre>
<p>to get the latest release of the py lib.  On non-Windows systems you will
need a working C-compiler in order to successfully complete this step.
The py lib and its tools are expected to work well on Linux, Windows
and OSX, Python versions 2.3, 2.4, 2.5 and 2.6.</p>
<p><strong>IMPORTANT NOTE</strong>: if you are using Windows and have previous
installations of the py lib on your system, please download
and execute <a class="reference" href="http://codespeak.net/svn/py/build/winpathclean.py">http://codespeak.net/svn/py/build/winpathclean.py</a>
This will check that no previous files are getting in the way.
(Unfortunately we don't know about a way to execute this
code automatically during the above install).</p>
</div>
<div class="section">
<h1><a id="downloading-a-tar-zip-archive-and-installing-that" name="downloading-a-tar-zip-archive-and-installing-that">Downloading a tar/zip archive and installing that</a></h1>
<p>Go to the python package index (pypi) and download a tar or zip file:</p>
<blockquote>
<a class="reference" href="http://pypi.python.org/pypi/py/">http://pypi.python.org/pypi/py/</a></blockquote>
<p>and unpack it to a directory, where you then type:</p>
<pre class="literal-block">
python setup.py install
</pre>
<p>If you don't have a working C-compiler you can do:</p>
<pre class="literal-block">
python setup.py install_lib
</pre>
<p>You will then not be able to use greenlets but otherwise
should be fine.</p>
</div>
<div class="section">
<h1><a id="installing-from-subversion-develop-mode" name="installing-from-subversion-develop-mode">Installing from subversion / develop mode</a></h1>
<p>To follow development or help with fixing things
for the next release, checkout the complete code
and documentation source:</p>
<pre class="literal-block">
svn co http://codespeak.net/svn/py/release/0.9.x py-0.9.x
</pre>
<p>You can then issue:</p>
<pre class="literal-block">
python setup.py develop
</pre>
<p>in order to work with your checkout version.</p>
<p>other interesting svn checkout points:</p>
<pre class="literal-block">
http://codespeak.net/
    svn/py/release      # release tags and branches
    svn/py/dist         # latest stable (may or may not be a release)
    svn/py/trunk        # head development / merge point
</pre>
</div>
<div class="section">
<h1><a id="working-with-multiple-py-lib-versions-svn-externals" name="working-with-multiple-py-lib-versions-svn-externals">Working with multiple py lib versions / svn externals</a></h1>
<p>If you happen to have multiple versions of the py lib
around or you ship the py lib as an svn-external to
then you might want to use py lib scripts more directly.
For example if you have a project layout like this:</p>
<pre class="literal-block">
mypkg/
    subpkg1/
        tests/
    tests/
py/ # as svn-external, could be specific tag/version
</pre>
<p>then you want to make sure that the actual local py lib is used
and not another system-wide version.  For this you need to add
<tt class="docutils literal"><span class="pre">py/bin</span></tt> or <tt class="docutils literal"><span class="pre">py\bin\win32</span></tt> respectively to your system's PATH settings.</p>
<p>You can do this by executing (on windows) a script to set the environment:</p>
<pre class="literal-block">
c:\\path\to\checkout\py\env.cmd
</pre>
<p>or on linux/osx you can add something like this to your shell
initialization:</p>
<pre class="literal-block">
eval `python ~/path/to/checkout/py/env.py`
</pre>
<p>to get good settings for PYTHONPATH and PATH.</p>
</div>
</div></body></html>