Works around Buildout recipes for rapid Amara+Akara deployment ticket (http://trac.xml3k.org/ticket/17)

Docs

Other docs (django related)

minitage

Prerequisites

First Buildout

Preparing infrastructure ...

$ mkdir amaraBuildout
$ cd amaraBuildout
$ wget http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py

Create builout.cfg

[buildout]
parts = amara2

[amara2]
recipe = zc.recipe.egg
interpreter = python
eggs = Amara

Preparing sandbox

$ python bootstrap.py
$ ./bin/buildout

Ready!

$ bin/python
>>> import amara
>>> amara.__version__
'2.0a1'

Buildout + virtualenv

If you need more isolated build environment ... use virtualenv

$ virtualenv --no-site-packages amaraTestingVE
$ cd amaraTestingVE/
$ bin/easy_install zc.buildout
$ bin/buildout init
$ nano buildout.cfg

buildout.cfg

[buildout]
parts = amara2

[amara2]
recipe = zc.recipe.egg
eggs = Amara
interpreter = python

$ bin/buildout -v -v -c buildout.cfg buildout:unzip=true
$ bin/python
>>>

Building from source

buildout.cfg

[buildout]
develop = amara_hg
parts = amara2

[amara2]
recipe = zc.recipe.egg
interpreter = amara_py
eggs = Amara
extra-paths = ${buildout:develop}/dist

Problems

Interpreter can't import new egg ...

Using Mercurial TODO

buildout.cfg

[buildout]
parts = amarahg amara2 entorno
eggs = Amara

[amarahg]
recipe = MercurialRecipe
repository =  http://bitbucket.org/uche/amara/

[amara2]
recipe = zc.recipe.egg:develop
egg = amara
setup = ${amarahg:location}/setup.py

[entorno]
recipe = zc.recipe.egg
interpreter = ampython
extra-paths = ${amarahg:location}/lib
eggs = ${buildout:eggs}

Problem

Mercurial part works fine, buildout builds the module amara but I can't use/import amara into my new shell

Testing minitage

[buildout]
parts = 
      amara
extensions = mr.developer
sources = amarahg
auto-checkout = *
download-directory = /tmp

[amarahg]
amara = hg http://bitbucket.org/uche/amara 
akara = hg http://bitbucket.org/uche/akara 

[amara]
recipe = minitage.recipe.scripts
interpreter = mypython
eggs =
    amara
    akara

A first installer: install_amara.py

I must investigate

LuisMiguel/PreparingBuildoutRecipe (last edited 2009-11-22 19:11:46 by LuisMiguel)