[Python-Dev] possible distutils.sysconfig.get_config_var bug

Brett Cannon brett at python.org
Thu Mar 29 16:31:20 CEST 2012


If you could, Jordan, please file a bug at bugs.python.org so the
discussion can happen there and be tracked better.

On Wed, Mar 28, 2012 at 03:06, Jordan Schneider <jbschne at umich.edu> wrote:

> Hi python-dev,
>
> Sorry if this is the wrong place to discuss this potential bug - feel free
> to point me in the right direction if so.
>
> I'm running OS X 10.7.3, and have two python2.7s installed, one system
> default in /usr/bin and the other by homebrew symlinked in /usr/local/bin.
>
> While running a configure script, distutils.sysconfig.get_config_var is
> not returing a full path for my homebrew Python framework, like so:
>
> Python 2.7.2 (default, Mar 28 2012, 02:31:16)
> [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)] on
> darwin
> >>> distutils.sysconfig.get_config_var('LINKFORSHARED')
> '-u _PyMac_Error Python.framework/Versions/2.7/Python'
>
> (the full path should be
> /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/Python)
>
>
> Whereas from the system python in /usr/bin:
>
> Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
> [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on
> darwin
> >>> distutils.sysconfig.get_config_var('LINKFORSHARED')
> '-u _PyMac_Error
> /System/Library/Frameworks/Python.framework/Versions/2.7/Python'
>
> This seems like a bug, no?
>
> Thanks for the help,
> Jordan
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/brett%40python.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120329/e86b9f6b/attachment.html>


More information about the Python-Dev mailing list