<!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"> <h1><a class="toc-backref" href="#id1" id="download-and-installation-of-the-py-lib" name="download-and-installation-of-the-py-lib">1 Download and Installation of the py lib</a></h1> <div class="contents topic"> <p class="topic-title first"><a id="contents" name="contents">Contents</a></p> <ul class="auto-toc simple"> <li><a class="reference" href="#download-and-installation-of-the-py-lib" id="id1" name="id1">1 Download and Installation of the py lib</a></li> <li><a class="reference" href="#downloading-a-tar-zip-file-and-installing-it" id="id2" name="id2">2 Downloading a tar/zip file and installing it</a><ul class="auto-toc"> <li><a class="reference" href="#getting-and-updating-via-subversion" id="id3" name="id3">2.1 Getting (and updating) via subversion</a></li> <li><a class="reference" href="#installation-via-setup-py" id="id4" name="id4">2.2 Installation via setup.py</a></li> <li><a class="reference" href="#local-installation-usage" id="id5" name="id5">2.3 Local Installation/Usage</a></li> <li><a class="reference" href="#the-py-lib-as-an-svn-external" id="id6" name="id6">2.4 The py lib as an svn external</a></li> </ul> </li> <li><a class="reference" href="#py-subversion-directory-structure" id="id7" name="id7">3 py subversion directory structure</a></li> </ul> </div> </div> <div class="section"> <h1><a class="toc-backref" href="#id2" id="downloading-a-tar-zip-file-and-installing-it" name="downloading-a-tar-zip-file-and-installing-it">2 Downloading a tar/zip file and installing it</a></h1> <p>The latest public release:</p> <blockquote> <a class="reference" href="http://codespeak.net/download/py/py-0.9.1.tar.gz">download py-0.9.1.tar.gz</a> <a class="reference" 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" href="#globally-installed-via-setup-py">globally installed via setup.py</a> or <a class="reference" 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"> <h2><a class="toc-backref" href="#id3" id="getting-and-updating-via-subversion" name="getting-and-updating-via-subversion">2.1 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" 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 "codespeak.net:8080" instead of just "codespeak.net". 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" href="http://codespeak.net/svn/py/dist">http://codespeak.net/svn/py/dist</a> py-dist</blockquote> </div> <div class="section"> <h2><a class="toc-backref" href="#id4" id="installation-via-setup-py" name="installation-via-setup-py"><span id="globally-installed-via-setup-py"></span>2.2 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"> <h2><a class="toc-backref" href="#id5" id="local-installation-usage" name="local-installation-usage"><span id="used-locally"></span>2.3 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"> <h2><a class="toc-backref" href="#id6" id="the-py-lib-as-an-svn-external" name="the-py-lib-as-an-svn-external"><span id="svn-external-scenario"></span>2.4 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" 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" 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" 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"> <h1><a class="toc-backref" href="#id7" id="py-subversion-directory-structure" name="py-subversion-directory-structure">3 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>