buildout

Python Code Organization Question : Eggs + Packages + Buildout + Unit Tests + SVN

I have several python projects that share common modules. Until now, I've been ... ahem ... keeping multiple copies of the common code and synchronizing by hand. But I'd clearly prefer to do something else. It looks to me now, as if zc.Buildout maybe what I need. I guess that what I should be doing is putting each reusable component of ...

Installing certain packages using virtualenv

So, I want to start using virtualenv this year. I like the no-site-packages option, that is nice. However I was wondering how to install certain packages into each virtualenv. For example, lets say I want to install django into each virtualenv... is this possible, and if so, how? Does buildout address this? ...

How do I use easy_install and buildout when pypi is down?

I am using buildout to automatically download and setup the many dependencies of my Plone installation. buildout more or less uses easy_install to download and install a bunch of Python eggs. This usually works, but it doesn't work if any of the dependencies cannot be downloaded or if I want buildout to find an internal package not appro...

How to tell Buildout to install a egg from a URL (w/o pypi)

I have some egg accessible as a URL, say http://myhosting.com/somepkg.egg . Now I don't have this somepkg listed on pypi. How do I tell buildout to fetch and install it for me. I have tried a few recipes but no luck so far. TIA ...

What's the simplest possible buildout.cfg to install Zope 2?

I know that the reccomended way to install Zope is with Buildout, but I can't seem to find a simple buildout.cfg to install a minimal Zope 2 environment. There are lots to install Plone and other things. I've tried: [buildout] parts = zope [zope] recipe = plone.recipe.zope2install eggs = But I get: An internal error occured due to ...

How to install django-haystack using buildout

I'm trying to convert a current Django project in development to use zc.buildout So far, I've got all the bits figured except for Haystack figured out. The Haystack source is available on GitHub, but I don't want to force users to install git. A suitable alternative seems to be to fetch a tarball from here That tarball contains a set...

Buildout recipe for a hierarchy of parts.

Is there a Python buildout recipe which would allow the following: [buildout] parts = group-of-parts [group-of-parts] recipe = what.can.i.use.for.this parts = part-1 part-2 [part-1] ... [part-2] ... In other words, I want a recipe which takes a 'parts' attribute much like 'buildout' section does so I can manually manage a hierarchy...

Preventing variable substitutions from occurring with buildout.

Is there a simple way of escaping the magic characters used for variable substitution in a buildout configuration, such that the string is left alone. In other words, where I say: [part] attribute = ${variable} I don't actually want it to expand ${variable} but leave it as the literal value. In practice the specific problem I am enco...

combine javascript files at deployment in python

Hi, I'm trying to reduce the number of scripts included in our website and we use buildout to handle deployments. Has anybody successfully implemented a method of combining and compressing scripts with buildout? ...

Better resources to learn buildout

I am trying to grasp a bit more of buildout with this tutorial, but unlike a tutorial, it seems like a cut and paste of presentation slides. I don't have a really clear idea of what the purpose of buildout is, and how it positions itself with scons and setuptools. Would you be so kind to provide details on these issues? Thanks! ...

How to install distutils packages using distutils api or setuptools api

Hello, I'm working on a buildout script that needs to install a distutils package on remote server. On PyPi there are 2 recipes for doing this collective.recipe.distutils 0.1 and zerokspot.recipe.distutils 0.1.1. The later module a derivative of the former, and is a little more convenient then the first, but the both suffer from the s...

How to contribute improvements to packages hosted on Cheeseshop ( pypi ) ?

I've been using zc.buildout more and more and I'm encountering problems with some recipes that I have solutions to. These packages generally fall into several categories: Package with no obvious links to a project site Package with links to free hosted service like github or google code Setup #2 is better then #1, but not much bett...

How to use buildout to create localized version of my project?

Hi, I am trying to create a localized version of my project. I started from the following: mkdir my cd my wget http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py After the last command I get the following message: Warning: wildcards not supported in HTTP. --08:42:17-- http://svn.zope.org/checkout/zc.buil...

Buildout and Virtualenv

I am messing around with the combination of buildout and virtualenv to setup an isolated development environment in python that allows to do reproducible builds. There is a recipe for buildout that let's you integrate virtualenv into buildout: tl.buildout_virtual_python With this my buildout.cfg looks like this: [buildout] develop ...

Pyfacebook from buildout

What is the best way to install the latest version of pyfacebook with buildout? The package is hosted on github and is not on pypi. This system doesn't have git installed, so a git-based recipe isn't unfortunately not an option. The github URL is http://github.com/sciyoshi/pyfacebook. TIA! ...

buildout deployment strategies

So I am applying zc.buildout to an existing django project. I am wondering about deploying it now. How do I achieve the sandbox effect on a production server? ...

Is there a buildout recipe that uses pip but does not install virtualenv?

I would like to use buildout rather than virtualenv. This decision means that I don't want virtualenv to be snuck into my kit, so I am looking for either a way to tell gp.recipe.pip not to install the virtualenv meme virus, or, a way to install packages from git repos for use with django/djangorecipe. Ideas? ...

Launching mysql server: same permissions for root and for user

Hi folks, so far in my 10+ years experience with linux, all the permission problems I've ever encountered, have been successfully solved with chmod -R 777 /path/where/the/problem/has/occured (every lie has a grain of truth in it :) This time the trick doesn't work, so I'm turning to you for help. I'm compiling mysql server from scratc...

How do I install Plone with gp.recipe.pip?

I would like to install Plone with buildout and gp.recipe.pip. Is this a good idea? How should I convert my "standard" Plone buildout to use pip? ...

State of Python Packaging: Buildout, Distribute, Distutils, EasyInstall, etc...

The last time I had to worry about installing Python packages was two years ago working with Enthought, NumPy and MayaVi2. That experience gave me lingering nightmares related to quirky behavior installing & updating Python packages in non-standard locations (in $HOME/usr/local2.6/, for example). Anyway, my work is taking me back to in...