mxcl/homebrew — Issue #9638: distutils.sysconfig.get_config_var('LINKFORSHARED')" output is wrong
Author: jkp
Created: 2012-01-17 11:03:15+00:00
State: open

1. Install python with ```brew install python --framework --universal```
2. Run ```/usr/local/bin/python -c "from distutils.sysconfig import *; print get_config_var('LINKFORSHARED')"```
3. The output does not contain the full path.

On my system I see something like:

```
-> % /usr/loca/bin/python -c "from distutils.sysconfig import *; print get_config_var('LINKFORSHARED')"
-u _PyMac_Error Python.framework/Versions/2.7/Python
```
vs

```
-> % /usr/bin/python -c "from distutils.sysconfig import *; print get_config_var('LINKFORSHARED')"
-u _PyMac_Error /System/Library/Frameworks/Python.framework/Versions/2.7/Python
```

This is a problem because a lot of packages use these variables to work out how to link themselves correctly.