junkafarian/clip — pull request #1 by lonetwin (2012-05-22 13:28:02+00:00)
Title: Update buildout.cfg and fabfile.py to bring them in sync with live deploy for openideo

- Pin version of paramiko (Fabric's setup.py installs the latest paramiko,
which in turn installs a later version on pycrypto. This version then
conflicts with the pycrypto version Fabric depends on)
- Use system's default python instead of bin/python in the clip directory. If
this is not done, the bin/python in the target directory is linked to
../bin/python, this messes up paths for buildout in the target (specifically
the ${buildout:directory} variable).
- In setup(), git-checkout the branch with a name, else the branch is checked
out in a 'detached head' state.
- In build(), since we are executing in the 'with cd(target)' context, check
for ./bin and ./bin/buildout rather than ./%s/bin % target ...