Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created May 7, 2009 14:35
Show Gist options
  • Save btbytes/108120 to your computer and use it in GitHub Desktop.
Save btbytes/108120 to your computer and use it in GitHub Desktop.
[buildout]
parts = python libs
develop = .
eggs = deadparrot
[libs]
recipe = zc.recipe.egg
eggs = zope.interface
[python]
recipe = zc.recipe.egg
interpreter = squawk
eggs = ${buildout:eggs}

Deadparrot

$ python2.6 virtualenv.py --no-site-packages deadparrot

$ wget svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py

$ bin/easy_install zc.buildout

$ bin/buildout init 
Creating '/Users/pradeep/deadparrot/buildout.cfg'.
Creating directory '/Users/pradeep/deadparrot/parts'.
Creating directory '/Users/pradeep/deadparrot/develop-eggs'.
Generated script '/Users/pradeep/deadparrot/bin/buildout'.

I'm going to use Zope interfaces, so let me add that to the buildout file

Run the buildout.

$ bin/buildout

The project I'm going to develop is called deadparrot. Following the convention, i'm going to create it under src directory.

$ mkdir -p src/deadparrot
$ touch __init__.py

adding a custom shell

[python] recipe = zc.recipe.egg interpreter = squawk eggs = ${buildout:eggs}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment