mxcl/homebrew — Issue #9489: python & python3: brew info (caveats) statement not correct
Author: samueljohn
Created: 2012-01-08 15:55:46+00:00
State: open

The statement in `brew info python3` is
`ln -s "/usr/local/Cellar/python3/3.2.2/Frameworks/Python.framework" ~/Frameworks`
which removes the old symlink from python 2.x. Instead under ~/Frameworks/Python.framewrok/Versions there should be the two python versions python 2.7.x and 3.2.x.
Compare `brew info python`, both replace each other.

Furthermore, I think it should be `~/Library/Frameworks` instead of `~/Frameworks` for user specific frameworks.

So it's not easily to be done with just one symlink. A dir named `Python.framework` has to be created.

So I do:
```
mkdir ~/Frameworks # if not already there
mkdir ~/Frameworks/Python.framework # if not already there
mkdir ~/Frameworks/Python.framework/Versions # if not already there
cd ~/Frameworks/Python.framework/Versions
ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7 2.7
ln -s /usr/local/Cellar/python3/3.2.2/Frameworks/Python.framework/Versions/3.2/ 3.2
ln -s 2.7 Current
cd ~/Frameworks/Python.framework/
ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 Headers
ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/Python Python
ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/Resources Resources
```

Could this be done in the link phase? Perhaps with ~/Library/Frameworks ?