#!/usr/bin/env bash

REPO_WHEEL=https://github.com/mariocesar/sorl-thumbnail/raw/wheels/wheel

pip install Wheel

if python --version 2>&1 >/dev/null | grep -q 'Python 3'; then
    pip install $REPO_WHEEL/Pillow-2.3.0-cp32-cp32mu-linux_x86_64.whl;
else
    pip install $REPO_WHEEL/Pillow-2.3.0-cp27-none-linux_x86_64.whl;
fi

pip install $PIP

pip install django==$DJANGO_VERSION

pip install coveralls
#!/usr/bin/env bash

REPO_WHEEL=https://github.com/mariocesar/sorl-thumbnail/raw/wheels/wheel

pip install Wheel

if $python --version 2>&1 >/dev/null | grep -q 'Python 3'; then
    pip install $REPO_WHEEL/Pillow-2.3.0-cp32-cp32mu-linux_x86_64.whl;
else
    pip install $REPO_WHEEL/Pillow-2.3.0-cp27-none-linux_x86_64.whl;
fi

pip install $PIP

pip install django==$DJANGO_VERSION

pip install coveralls
--- 
+++ 
@@ -4,7 +4,7 @@
 
 pip install Wheel
 
-if python --version 2>&1 >/dev/null | grep -q 'Python 3'; then
+if $python --version 2>&1 >/dev/null | grep -q 'Python 3'; then
     pip install $REPO_WHEEL/Pillow-2.3.0-cp32-cp32mu-linux_x86_64.whl;
 else
     pip install $REPO_WHEEL/Pillow-2.3.0-cp27-none-linux_x86_64.whl;
Fix wrong variable for getting python binary
