sebastien/cuisine — pull request #78 by jeethu (2012-05-30 09:16:02+00:00)
Title: Try calling commands with sudo if they fail otherwise in file_attribs

While using `file_attribs()` to deploy something on a vagrant instance, the script would fail on `chown`, with a message like:

chown deploy "/tmp/src.tar.bz2"
chown: changing ownership of `/tmp/src.tar.bz2': Operation not permitted

This patch patches `file_attribs()` calls the command with `sudo()`, if `run()` fails.

Also, I couldn't get setup.py develop to work, patched setup.py to use setuptools instead of distutils.