Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need something that supports templating to pull this off. The most used in the python community is pastescript.</p> <pre><code>easy_install pastescript # A one-time install paster create </code></pre> <p>If you've already decided on the name of the package, than it's just:</p> <pre><code>paster create mypackage </code></pre> <p>If you want to customize the template, than the easiest way is to create your own python package that includes the custom template you want. Once you've installed it into your environment, you can then use this custom template as much as you want. (This is the sort of thing used by frameworks like pylons to create a template for a web application).</p> <pre><code>paster create -t libtemplate mypackage paster create -t apptemplate mypackage </code></pre> <p>For more details on how to create templates (which consist of a mix of code and source files) take a look at: <a href="http://pythonpaste.org/script/developer.html#templates" rel="noreferrer">http://pythonpaste.org/script/developer.html#templates</a> You'll notice that templates support inheritance, so that you can, e.g. just build upon the included template, or create your own, from-scratch templates.</p> <p>For a good example of a customized template, you can take a look at the pylons template in source, here: <a href="http://pylonshq.com/project/pylonshq/browser/pylons/util.py#L182" rel="noreferrer">Pylons Template Code</a></p> <p>In addition, if you're not already using it, you should take a look at Ian Bicking's virtualenv. It allows you to create temporary 'virtual' environments that allow you to install python packages without using and/or conflicting with whatever system-wide packages you may have installed.</p> <p>A standard setup with virtualenv and pastescript might look something like this:</p> <pre><code>mkdir mypackage &amp;&amp; cd mypackage virtualenv --distribute env source env/bin/activate # 'Turns on / activates' the environment easy_install pastescript paster create mypackage </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload