mxcl/homebrew — pull request #14689 by samueljohn (2012-09-04 11:44:00+00:00)
Title: python: sha1 mismatch. Harden against other pythons. Pip 1.2

- Unset PYTHONPATH and PYTHONHOME which would lead to
install distribute and pip into the wrong python.
- For NCLT: Add to CPPFLAGS the path to zlib via -I
because python's setup.py scans only these flags.
- '-Qunused-arguments' can be added after
ENV.enable_warnings to reduce noise. The only thing
which we must not add is the "-w" switch!
- Pass "--no-user-cfg" to python setup.py and add --force
when installing distribute and pip to ensure overwriting
with the new ones.