fileability/choc-support — pull request #12 by amcgregor (2012-06-03 20:40:57+00:00)
Title: Improved Python control scripts for build, repl, etc.

These scripts are virtualenv aware and utilize `setup.py` (if present) for related tasks (check→`setup.py test`) and `setup.py develop` run prior to tasks if we have both a virtualenv and `setup.py` script.

This fits my requirements, but won't fit everyone's. (Many Python virtualenv users keep the virtual environment and source code separate.)

For when environment variable editing is implemented, the default behaviour of these scripts can be overridden by setting `CHOC_BUILD`, `CHOC_CHECK`, etc. The contents of these variables are complete BASH scripts to execute which are written to a temporary file before control is passed.

Additionally these scripts output a fair amount of useful diagnostic information including Python version, Python executable path, and each command that is executed.