mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-22 08:38:39 +02:00
![Alexandru Ardelean](/assets/img/avatar_default.png)
Python3 comes with a built-in readline module. It wasn't included up until
now; mostly because it wasn't considered.
This change introduces it as a sub-package of the main Python3 package.
readline support is included in Python.
libreadline pulls libncursesw as a package, so python3-ncurses was
updated to pull libncursesw as well.
It should be the same package; mostly done for consistency.
Resolves the issue reported here:
https://forum.openwrt.org/t/python3-repl-missing-readline/90039
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
(cherry picked from commit 49faf5d7ca
)
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
19 lines
573 B
Makefile
19 lines
573 B
Makefile
#
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
define Package/python3-ncurses
|
|
$(call Package/python3/Default)
|
|
TITLE:=Python $(PYTHON3_VERSION) ncurses module
|
|
DEPENDS:=+python3-light +libncursesw
|
|
endef
|
|
|
|
$(eval $(call Py3BasePackage,python3-ncurses, \
|
|
/usr/lib/python$(PYTHON3_VERSION)/curses \
|
|
/usr/lib/python$(PYTHON3_VERSION)/lib-dynload/_curses.$(PYTHON3_SO_SUFFIX) \
|
|
/usr/lib/python$(PYTHON3_VERSION)/lib-dynload/_curses_panel.$(PYTHON3_SO_SUFFIX) \
|
|
))
|