[IPython-dev] [Pythonmac-SIG] readline support for OS X Leopard
Tue Oct 30 17:34:12 CDT 2007
Well one way to do this, although perhaps crude, would be to check to
see if the libreadline is really a link to editline, since on a
default Leopard install, it is:
[mvl ~]$ ls -l /usr/lib/libreadline.dylib
lrwxr-xr-x 1 root wheel 15 Oct 17 15:59 /usr/lib/libreadline.dylib@
I suppose one could also check for a "real" readline in "/usr/local",
in case someone installed it.
On Oct 30, 2007, at 2:43 PM, Brian Granger wrote:
> I am afraid that this patch won't cut it. It does a simple test of
> the os type. The problem is that someone could install a version of
> python on OS X and want to use the other readline library (for example
> the OS X python binaries from the python.org website ship with this
> readline). Somehow, we need to do a test of exactly what readline is
> installed as well as an os test. But, I won't have Leopard running on
> my system for a few more weeks so I can't help with this.
> Can anyone play around to see if it is possible to detect which
> readline is installed?
> On 10/29/07, Michael Vanlandingham <email@example.com> wrote:
>> FWIW, this patch works for me. I'm on IPython 0.8.2.svn.r2841.
>> This was driving me nuts for some time -- after all, the _Ruby_ shell
>> (irb) had tab-completion in Leopard, so why shouldn't Python/
>> iPython? I hadn't found the time to figure out a solution, so
>> for user communities. I say commit the change.
>> Thanks -- you guys made my day!
>> On Oct 27, 2007, at 11:25 AM, Fernando Perez wrote:
>>> On 10/27/07, Boyd Waters <firstname.lastname@example.org> wrote:
>>>> OK, thanks... I'll try to put something in ipy_defaults.py
>>>> I'm trying to come up to speed on the new style configuration. I'll
>>>> try looking through Trac for more info as well.
>>> Honestly, this is so important that I'd rather have it in the core
>>> it works for any user, without bugging them about updating their
>>> config setup or having to think at all. If they have requested
>>> readline support, then it should just work. We already have
>>> platform-specific code to work around a things in Windows, having a
>>> little bit of Leopard support doesn't bother me one bit.
>>> Have a look at the attached patch, and if something like that works
>>> well, we can easily just drop it in.
>>> Pythonmac-SIG maillist - Pythonmac-SIG@python.org
>> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev