stankevich/puppet-python — pull request #1 by apenney (2012-10-17 20:33:23+00:00)
Title: Fix no http proxy case

You cannot set the http_proxy environment to false or it breaks pip completely and the virtualenv fails:

/Stage[main]/Python::Config/Service[gunicorn]/ensure: ensure changed 'stopped' to 'running'
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: New python executable in /opt/edx/bin/python
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Installing distribute.............................................................................................................................................................................................done.
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Installing pip...............done.
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Running virtualenv with interpreter /usr/bin//python
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Cannot fetch index base URL http://pypi.python.org/simple/
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Could not find any downloads that satisfy the requirement distribute in /opt/edx/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: No distributions at all found for distribute in /opt/edx/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Storing complete log in /root/.pip/pip.log
Error: mkdir -p /opt/edx && export http_proxy=false && virtualenv -p `which python` /opt/edx && /opt/edx/bin/pip install --upgrade distribute pip returned 1 instead of one of [0]