[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

Zvezdan Petkovic report at bugs.python.org
Tue Sep 22 23:02:00 CEST 2009

Zvezdan Petkovic <zvezdan at zope.com> added the comment:


IMO, your backtrace only implies that readline module was built 
believing it has libedit (i.e., include files were system ones from 

However, the following scenario is possible.  Some packaging tools 
choose to divide library packages into a runtime part and a development 
part.  If you had a copy of readline that was a runtime part only, it 
would have /usr/local/lib/* files but not /usr/local/include/* files 
(development part would have them).

Because of the way setup.py stashes /usr/local/lib first in the path, 
the build could have used system /usr/include/* file and linked to your 
local copy of readline library.

This is just a wild guess of course.

That's why I was interested in the output of otool command on your build 
of readline module.  That would tell us what it was linked to.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list