Merge pull request #1157 from commodo/python3-ncurses
python3: force libncurses
This commit is contained in:
commit
18b4792033
2 changed files with 16 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
define Package/python3-ncurses
|
define Package/python3-ncurses
|
||||||
$(call Package/python3/Default)
|
$(call Package/python3/Default)
|
||||||
TITLE:=Python $(PYTHON3_VERSION) ncurses module
|
TITLE:=Python $(PYTHON3_VERSION) ncurses module
|
||||||
DEPENDS:=+python3-light +libncursesw
|
DEPENDS:=+python3-light +libncurses
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call Py3BasePackage,python3-ncurses, \
|
$(eval $(call Py3BasePackage,python3-ncurses, \
|
||||||
|
|
15
lang/python3/patches/011-do-not-prefer-ncursesw.patch
Normal file
15
lang/python3/patches/011-do-not-prefer-ncursesw.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 2779658..b6d3d61 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -693,8 +693,8 @@ class PyBuildExt(build_ext):
|
||||||
|
# use the same library for the readline and curses modules.
|
||||||
|
if 'curses' in readline_termcap_library:
|
||||||
|
curses_library = readline_termcap_library
|
||||||
|
- elif self.compiler.find_library_file(lib_dirs, 'ncursesw'):
|
||||||
|
- curses_library = 'ncursesw'
|
||||||
|
+ #elif self.compiler.find_library_file(lib_dirs, 'ncursesw'):
|
||||||
|
+ # curses_library = 'ncursesw'
|
||||||
|
elif self.compiler.find_library_file(lib_dirs, 'ncurses'):
|
||||||
|
curses_library = 'ncurses'
|
||||||
|
elif self.compiler.find_library_file(lib_dirs, 'curses'):
|
Loading…
Reference in a new issue