package/python-urwid: depend on python3

Although the package claims to support both python2 and python3,
there are some places which contain python3-only code (mainly
asyncio-related).
We can try to tweak some of the files in order to make it work with
python2, but it doesn't worth the effort since python2 isn't maintained
for a long time.

Update the reverse recursive dependencies accordingly.

Fixes:
 - http://autobuild.buildroot.net/results/356c6b09566c6020dc320eb89da791581571cb7f/

Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Asaf Kahlon 2021-10-06 19:33:37 +03:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 7633915abb
commit 1c10095945
3 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,8 @@
config BR2_PACKAGE_PYTHON_CONFIGSHELL_FB
bool "python-configshell-fb"
depends on BR2_PACKAGE_PYTHON3 # python-urwid
select BR2_PACKAGE_PYTHON_PYPARSING
select BR2_PACKAGE_PYTHON3_READLINE if BR2_PACKAGE_PYTHON3
select BR2_PACKAGE_PYTHON_READLINE if BR2_PACKAGE_PYTHON
select BR2_PACKAGE_PYTHON3_READLINE
select BR2_PACKAGE_PYTHON_SIX
select BR2_PACKAGE_PYTHON_URWID
help

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_PYTHON_URWID
bool "python-urwid"
depends on BR2_PACAKGE_PYTHON3
help
Urwid is a console user interface library for Python

View File

@ -1,9 +1,9 @@
comment "targetcli-fb depends on Python"
depends on !BR2_PACKAGE_PYTHON && !BR2_PACKAGE_PYTHON3
depends on !BR2_PACKAGE_PYTHON3
config BR2_PACKAGE_TARGETCLI_FB
bool "targetcli-fb"
depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
depends on BR2_PACKAGE_PYTHON3 # python-configshell-fb
select BR2_PACKAGE_PYTHON_CONFIGSHELL_FB
select BR2_PACKAGE_PYTHON_RTSLIB_FB
select BR2_PACKAGE_PYTHON_SIX