python-imaging/Pillow — pull request #275 by freyes (2013-07-09 03:18:24+00:00)
Title: Added clean/build to tox to make it behave like travis

If you run tox without the lines added by this patch (clean/build), the tests fail, also this make travis and tox work in the same way.

This is the error thrown running `tox -e py27` inside a fresh clone

```
GLOB sdist-make: /home/freyes/Projects/pillow.git/setup.py
py27 recreate: /home/freyes/Projects/pillow.git/.tox/py27
py27 sdist-inst: /home/freyes/Projects/pillow.git/.tox/dist/Pillow-2.1.0.zip
py27 runtests: commands[0]
Traceback (most recent call last):
File "selftest.py", line 11, in
from PIL import Image, ImageDraw, ImageFilter, ImageMath
File "/home/freyes/Projects/pillow.git/PIL/ImageMath.py", line 19, in
from PIL import _imagingmath
ImportError: cannot import name _imagingmath
ERROR: InvocationError: '/home/freyes/Projects/pillow.git/.tox/py27/bin/python selftest.py'
________________________________________________________________________________ summary _________________________________________________________________________________
ERROR: py27: commands failed
```