SkyCrawl / python-gnureadline

The standard Python readline extension statically linked against the GNU readline library, providing readline support to Python on platforms without it.

Home Page:http://pypi.python.org/pypi/gnureadline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a fork of the original python-gnureadline. Sole changes are:

  1. The included GNU readline library and the code building it have been deleted.
  2. The module now expects that GNU readline is installed on the system and that the installation path is given via the environmental variable 'RL_PATH'.

Original README: stand-alone GNU readline module ===============================

Some platforms, such as Mac OS X, do not ship with GNU readline installed. The readline extension module in the standard library of Mac "system" Python uses NetBSD's editline (libedit) library instead, which is a readline replacement with a less restrictive software license.

As the alternatives to GNU readline do not have fully equivalent functionality, it is useful to add proper readline support to these platforms. This module achieves this by bundling the standard Python readline module with the GNU readline source code, which is compiled and statically linked to it. The end result is a package which is simple to install and requires no extra shared libraries.

The module is called gnureadline so as not to clash with the readline module in the standard library. This keeps polite installers such as pip happy and is sufficient for shells such as IPython. In order to use this module in the standard Python shell it has to be installed with the more impolite easy_install from setuptools. It is recommended that you use the latest pip >= 1.4 together with setuptools >= 0.8 to install gnureadline. This will download a binary wheel from PyPI if available, thereby bypassing the need for compilation and its slew of potential problems (especially on OS X).

The module can be used with both Python 2.x and 3.x, and has been tested with Python versions 2.6, 2.7, 3.2, 3.3, 3.4 and 3.5. The first three numbers of the module version reflect the version of the underlying GNU readline library (major, minor and patch level), while any additional fourth number distinguishes different module updates based on the same readline library.

This module is usually unnecessary on Linux and other Unix systems with default readline support. An exception is if you have a Python distribution that does not include GNU readline due to licensing restrictions (such as ActiveState's ActivePython). If you are using Windows, which also ships without GNU readline, you might want to consider using the pyreadline module instead, which is a readline replacement written in pure Python that interacts with the Windows clipboard.

The latest development version is available from the GitHub repository.

About

The standard Python readline extension statically linked against the GNU readline library, providing readline support to Python on platforms without it.

http://pypi.python.org/pypi/gnureadline

License:GNU General Public License v3.0


Languages

Language:C 94.5%Language:Python 5.5%Language:Makefile 0.0%