##// END OF EJS Templates
Now IPython works with OS X 10.5 (Leopards) libedit based readline module.
bgranger -
Show More

The requested changes are too big and content was truncated. Show full diff

1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
@@ -28,7 +28,20 b" if sys.platform == 'win32' and have_readline:"
28 except AttributeError:
28 except AttributeError:
29 print "Failed GetOutputFile"
29 print "Failed GetOutputFile"
30 have_readline = False
30 have_readline = False
31
31
32 # Test to see if libedit is being used instead of GNU readline.
33 # Thanks to Boyd Waters for this patch.
34 uses_libedit = False
35 if sys.platform == 'darwin' and have_readline:
36 import commands
37 (status, result) = commands.getstatusoutput( "otool -L %s | grep libedit" % _rl.__file__ )
38 if status == 0 and len(result) > 0:
39 # we are bound to libedit - new in Leopard
40 _rl.parse_and_bind("bind ^I rl_complete")
41 print "Leopard libedit detected."
42 uses_libedit = True
43
44
32 # the clear_history() function was only introduced in Python 2.4 and is
45 # the clear_history() function was only introduced in Python 2.4 and is
33 # actually optional in the readline API, so we must explicitly check for its
46 # actually optional in the readline API, so we must explicitly check for its
34 # existence. Some known platforms actually don't have it. This thread:
47 # existence. Some known platforms actually don't have it. This thread:
@@ -1,3 +1,8 b''
1 2007-11-01 Brian Granger <ellisonbg@gmail.com>
2
3 * iplib.py, rlineimpl.py: Applied Body Water's patches to get IPython
4 working with OS X 10.5 libedit implementation of readline.
5
1 2007-10-24 Ville Vainio <vivainio@gmail.com>
6 2007-10-24 Ville Vainio <vivainio@gmail.com>
2
7
3 * iplib.py(user_setup): To route around buggy installations where
8 * iplib.py(user_setup): To route around buggy installations where
General Comments 0
You need to be logged in to leave comments. Login now