Batterii/pyramid_appengine — pull request #15 by nigel-smith (2012-06-08 15:00:16+00:00)
Title: Fix Runtime Import Errors

Hi,

I spent a few hours wondering why this template wouldn't work on my system - I even tested it on a plain install of Ubuntu in a VM. The reason why in the end is an issue/bug with virtualenv. Virtualenv's python won't honour 'python -S' but buildout needs that in order to correctly ignore the system's site-packages.

I've added some text for you to review which explains the issue somewhat and will hopefully save someone else some time when they run into this. It's also really important to use buildout's 'include-site-packages=false' switch in buildout.cfg. Without it, only systems with none of the needed packages in site-packages will create a /parts directory correctly. The reason why this is hard to reproduce is simply because different ways of installing the prerequisites will have placed different files in site-packages; i.e. some have an error on paste, others on zope.deprecate depending on whether they already installed it. Obviously the whole point of buildout is that people don't need to worry about their system python's packages.

See: http://pypi.python.org/pypi/zc.buildout/1.5.2#working-with-a-system-python

Many thanks,

Nigel.