_python_version=`python -c 'import sys; version=sys.version_info[:3]; print("{0}.{1}.{2}".format(*version))'`

if [ "$_python_version" == "2.6.6" ]
then
  pip install -r pyinstaller-requirements-2.6.txt
else
  pip install -r pyinstaller-requirements.txt
fi

_python_version=`python -c 'import sys; version=sys.version_info[:3]; print("{0}.{1}.{2}".format(*version))'`

if [ "$_python_version" == "2.6.6" ]
then
  pip install -r pyinstaller-requirements-2.6.txt
  pip uninstall jinja2
else
  pip install -r pyinstaller-requirements.txt
fi

Remove the Jinja2 package since it cannot work with python2.6 and fails the packaging
Remove the Jinja2 package since it cannot work with python2.6 and fails the packaging
