I have a pre-rolled bootstrap script that creates a buildout.cfg for my wsgi-based framework. Buildout is run with this initially to create the necessary paste directory structure. I then pull my code from the VCS repo into the src directory, and a buildout.cfg specific to whatever env I’m deploying to along with a few other .py static data files. Then I run buildout again.
Running buildout twice is pretty wasteful from my pov. Is there a way to do an export from subversion from within buildout into my project source dir and also arbitrary files?
I’d use
mr.developerto grab a local checkout:Now
mr.developerwill check outyourpackageas part of the buildout run, intosrc/, run it’ssetup.pyto make it a development egg, and tell buildout it’s available as such. Now buildout will use that local copy to satisfy anyyourpackagerequirement.If your svn package is not a python egg, simply add
egg=falseto it’ssourcesentry, andmr.developerwon’t look for asetup.pyto run.Alternatively, you can just use
iw.recipe.cmdto simply run thesvncommand: