Is it possible to use readline instead of libedit in Python raw_input under OS X?

From the documentation of the readline module , it mentions:

On MacOS X, the readline module can be implemented using the libedit library instead of the GNU readline. The configuration file for libedit is different from the GNU configuration file.

Is it possible to use the readline library in /usr/lib/libreadline.dylib, for example, or even compile using MacPorts or Homebrew?

+3
source share
2 answers
$ sudo easy_install readline
+3
source

GNU readline MacPorts Python, configure script. python script Python (Mac/BuildScript/build-installer.py). GNU readline 10.4 .

, OS X /usr/lib/libreadline.dylib libedit; AFAIK, Apple GNU readline OS X:

$ ls -l /usr/lib/libreadline.dylib 
lrwxr-xr-x  1 root  wheel  15 Sep  5  2009 /usr/lib/libreadline.dylib@ -> libedit.2.dylib
+2

Source: https://habr.com/ru/post/1752216/


All Articles