sources for download.html [rev. unknown]
<!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;"> </div></div>


<div class="section" id="download-and-installation-of-the-py-lib">
<h1><a class="toc-backref" href="#id1">1&nbsp;&nbsp;&nbsp;Download and Installation of the py lib</a></h1>
<div class="contents topic" id="contents">
<p class="topic-title first">Contents</p>
<ul class="auto-toc simple">
<li><a class="reference internal" href="#download-and-installation-of-the-py-lib" id="id1">1&nbsp;&nbsp;&nbsp;Download and Installation of the py lib</a></li>
<li><a class="reference internal" href="#downloading-a-tar-zip-file-and-installing-it" id="id2">2&nbsp;&nbsp;&nbsp;Downloading a tar/zip file and installing it</a><ul class="auto-toc">
<li><a class="reference internal" href="#getting-and-updating-via-subversion" id="id3">2.1&nbsp;&nbsp;&nbsp;Getting (and updating) via subversion</a></li>
<li><a class="reference internal" href="#installation-via-setup-py" id="id4">2.2&nbsp;&nbsp;&nbsp;Installation via setup.py</a></li>
<li><a class="reference internal" href="#local-installation-usage" id="id5">2.3&nbsp;&nbsp;&nbsp;Local Installation/Usage</a></li>
<li><a class="reference internal" href="#the-py-lib-as-an-svn-external" id="id6">2.4&nbsp;&nbsp;&nbsp;The py lib as an svn external</a></li>
</ul>
</li>
<li><a class="reference internal" href="#py-subversion-directory-structure" id="id7">3&nbsp;&nbsp;&nbsp;py subversion directory structure</a></li>
</ul>
</div>
</div>
<div class="section" id="downloading-a-tar-zip-file-and-installing-it">
<h1><a class="toc-backref" href="#id2">2&nbsp;&nbsp;&nbsp;Downloading a tar/zip file and installing it</a></h1>
<p>The latest public release:</p>
<blockquote>
<a class="reference external" href="http://codespeak.net/download/py/py-0.9.1.tar.gz">download py-0.9.1.tar.gz</a>
<a class="reference external" href="http://codespeak.net/download/py/py-0.9.1.zip">download py-0.9.1.zip</a></blockquote>
<p>The py lib can be <a class="reference internal" href="#globally-installed-via-setup-py">globally installed via setup.py</a>
or <a class="reference internal" href="#used-locally">used locally</a>.</p>
<p>WARNING: win32 there is no pre-packaged c-extension
module (greenlet) yet and thus greenlets will not work
out of the box.</p>
<div class="section" id="getting-and-updating-via-subversion">
<h2><a class="toc-backref" href="#id3">2.1&nbsp;&nbsp;&nbsp;Getting (and updating) via subversion</a></h2>
<p>Use Subversion to checkout the latest 0.9.x stable release:</p>
<blockquote>
svn co <a class="reference external" href="http://codespeak.net/svn/py/release/0.9.x">http://codespeak.net/svn/py/release/0.9.x</a> py-0.9.x</blockquote>
<p>to obtain the complete code and documentation source.</p>
<p>If you experience problems with the subversion checkout e.g.
because you have a http-proxy in between that doesn't proxy
DAV requests you can try to use &quot;codespeak.net:8080&quot; instead
of just &quot;codespeak.net&quot;.  Alternatively, you may tweak
your local subversion installation.</p>
<p>If you want to follow stable snapshots
then you may use the equivalent of this invocation:</p>
<blockquote>
svn co <a class="reference external" href="http://codespeak.net/svn/py/dist">http://codespeak.net/svn/py/dist</a> py-dist</blockquote>
</div>
<div class="section" id="installation-via-setup-py">
<span id="globally-installed-via-setup-py"></span><h2><a class="toc-backref" href="#id4">2.2&nbsp;&nbsp;&nbsp;Installation via setup.py</a></h2>
<p>Go to your unpacked/checked out directory
and issue:</p>
<blockquote>
python setup.py install</blockquote>
</div>
<div class="section" id="local-installation-usage">
<span id="used-locally"></span><h2><a class="toc-backref" href="#id5">2.3&nbsp;&nbsp;&nbsp;Local Installation/Usage</a></h2>
<p>You need to put the checkout-directory into your <tt class="docutils literal"><span class="pre">PYTHONPATH</span></tt>
and you want to have the <tt class="docutils literal"><span class="pre">py-dist/py/bin/py.test</span></tt> script in
your (unixish) system path, which lets you execute test files
and directories.</p>
<p>There is a convenient way for Bash/Shell based systems
to setup the <tt class="docutils literal"><span class="pre">PYTHONPATH</span></tt> as well as the shell <tt class="docutils literal"><span class="pre">PATH</span></tt>, insert:</p>
<pre class="literal-block">
eval `python ~/path/to/py-dist/py/env.py`
</pre>
<p>into your <tt class="docutils literal"><span class="pre">.bash_profile</span></tt>.  Of course, you need to
specify your own checkout-directory.</p>
</div>
<div class="section" id="the-py-lib-as-an-svn-external">
<span id="svn-external-scenario"></span><h2><a class="toc-backref" href="#id6">2.4&nbsp;&nbsp;&nbsp;The py lib as an svn external</a></h2>
<p>Add the py lib as an external to your project <span class="incremental">DIRECTORY</span>
which contains your svn-controlled root package:</p>
<pre class="literal-block">
svn propedit 'svn:externals' DIRECTORY
</pre>
<p>which will open an editor where you can add
the following line:</p>
<blockquote>
py <a class="reference external" href="http://codespeak.net/svn/py/dist">http://codespeak.net/svn/py/dist</a></blockquote>
<p>This will make your projcet automatically use the
most recent stable snapshot of the py lib.</p>
<p>Alternatively you may use this url for
integrating the development version:</p>
<blockquote>
<a class="reference external" href="http://codespeak.net/svn/py/trunk">http://codespeak.net/svn/py/trunk</a></blockquote>
<p>or the next one for following the e.g. the 0.9 release branch</p>
<blockquote>
<a class="reference external" href="http://codespeak.net/svn/py/release/0.9.x">http://codespeak.net/svn/py/release/0.9.x</a></blockquote>
</div>
</div>
<div class="section" id="py-subversion-directory-structure">
<h1><a class="toc-backref" href="#id7">3&nbsp;&nbsp;&nbsp;py subversion directory structure</a></h1>
<p>The directory release layout of the repository is
going to follow this scheme:</p>
<pre class="literal-block">
http://codespeak.net/
    svn/py/dist         # latest stable (may or may not be a release)
    svn/py/release      # release tags and branches
    svn/py/trunk        # head development / merge point
</pre>
</div>
</div></body></html>