This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients chuck, ned.deily, ronaldoussoren, tarek
Date 2009-10-03.00:30:51
SpamBayes Score 7.1434947e-09
Marked as misclassified No
Message-id <1254529853.16.0.0721367285039.issue7039@psf.upfronthosting.co.za>
In-reply-to
Content
I don't know how it works on other platforms but test_get_python_inc is 
incorrect when run, as in this case, from a user-installed python rather 
than as part of a build of python.

The relevant code in test_sysconfig.py:

>>> (srcdir,) = sysconfig.get_config_vars('srcdir')
>>> srcdir
'/Users/ronald/Projects/python/r263'
>>> inc_dir = sysconfig.get_python_inc()
>>> inc_dir
'/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6'

That's where Python.h exists in an OS X framework install.  The srcdir 
captured is useless on other than the build machine; there is none.  
(People who build OS X python installers don't see this problem when 
they run the tests on a machine which happens to have a build directory 
in the same location.)
History
Date User Action Args
2009-10-03 00:30:53ned.deilysetrecipients: + ned.deily, ronaldoussoren, tarek, chuck
2009-10-03 00:30:53ned.deilysetmessageid: <1254529853.16.0.0721367285039.issue7039@psf.upfronthosting.co.za>
2009-10-03 00:30:52ned.deilylinkissue7039 messages
2009-10-03 00:30:51ned.deilycreate