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>
16 lines
489 B
Makefile
16 lines
489 B
Makefile
#
|
|
# Copyright (C) 2021 Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
define Package/python3-readline
|
|
$(call Package/python3/Default)
|
|
TITLE:=Python $(PYTHON3_VERSION) readline module
|
|
DEPENDS:=+python3-light +libreadline +libncursesw
|
|
endef
|
|
|
|
$(eval $(call Py3BasePackage,python3-readline, \
|
|
/usr/lib/python$(PYTHON3_VERSION)/lib-dynload/readline.$(PYTHON3_SO_SUFFIX) \
|
|
))
|