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@
-> libedit.2.dylib
I suppose one could also check for a "real" readline in "/usr/local",
in case someone installed it.
-mvl
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?
Thanks,
Brian
On 10/29/07, Michael Vanlandingham <[EMAIL PROTECTED]> 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
hooray
for user communities. I say commit the change.
Thanks -- you guys made my day!
Michael
On Oct 27, 2007, at 11:25 AM, Fernando Perez wrote:
On 10/27/07, Boyd Waters <[EMAIL PROTECTED]> 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
so
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.
Cheers,
f
<ip_leopard.diff>_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
_______________________________________________
IPython-dev mailing list
[EMAIL PROTECTED]
http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig