mxcl/homebrew — pull request #15064 by samueljohn (2012-09-23 10:37:23+00:00)
Title: python goes superenv

***This is unfinished work. Put here to preview and discussion (and because I may need help).***

This pull request aims to fix
- #14614 by using superenv
- #14712 by removing all paths from `sys.path` (internal name for PYTHONPATH) that start with `/System`
- #14688 by setting the `sys.prefix` to `brew --prefix`, so `pip uninstall ` can remove executable python scripts form `$(brew --prefix)/share/python`.
- Simplify and clear up the caveats (was a bit hard to read)
- Put the installer scripts (`pip` and `easy_install`) into the cellar, so they end up in `$(brew --prefix)/bin`. Before people forgot to add `$(brew --prefix)/share/python` to their `PATH` and ended up using system's `easy_install` and complaint.

### Issues to solve

1. Python still links to libgcc_s.1.dylib even if "--without-gcc" seems to be passed to the cc.
2. Python's disutils remember the CC, CFLAGS, LDFLAGS from superenv which do not work if, later on, an extension needs to compile stuff when we `pip install `.
3. I have to check if this closes the "xcode-select" error in #14614
4. The module `bsddb185` is not built successfully (some superenv related link issue)
5. I think it doesn't link to our `readline` but to the `libedit` (which is shitty)