From b4705dfdd43d9e62c11d42bc2fb3f6600a5a7e33 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 11 Jan 2022 08:28:09 +0100 Subject: [PATCH] package/python-pyparsing: needs python3 python-pyparsing dropped python2 support since version 3.0.0: https://github.com/pyparsing/pyparsing/blob/master/docs/whats_new_in_3_0_0.rst#python-2-x-no-longer-supported resulting in the following build failure since bump to version 3.0.6 in commit 7affc7827aee0e07ec94d3b4d91c2e23bda8d937: File "setup.py", line 8, in from pyparsing import __version__ as pyparsing_version File "/home/buildroot/autobuild/instance-0/output-1/build/python-pyparsing-3.0.6/pyparsing/__init__.py", line 100 major: int ^ SyntaxError: invalid syntax Fixes: - http://autobuild.buildroot.org/results/8ac5224f4b6c2c59035dbfb53541e76f58b15e47 Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- package/python-httplib2/Config.in | 7 +++---- package/python-pyparsing/Config.in | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package/python-httplib2/Config.in b/package/python-httplib2/Config.in index 39671f2386..0095d95b51 100644 --- a/package/python-httplib2/Config.in +++ b/package/python-httplib2/Config.in @@ -1,9 +1,8 @@ config BR2_PACKAGE_PYTHON_HTTPLIB2 bool "python-httplib2" - select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON - select BR2_PACKAGE_PYTHON_SSL if BR2_PACKAGE_PYTHON - select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3 - select BR2_PACKAGE_PYTHON3_SSL if BR2_PACKAGE_PYTHON3 + depends on BR2_PACKAGE_PYTHON3 # python-pyparsing + select BR2_PACKAGE_PYTHON3_ZLIB + select BR2_PACKAGE_PYTHON3_SSL select BR2_PACKAGE_PYTHON_PYPARSING # runtime help httplib2 is a comprehensive HTTP client library, httplib2.py diff --git a/package/python-pyparsing/Config.in b/package/python-pyparsing/Config.in index 926ca07ed7..9b5894116d 100644 --- a/package/python-pyparsing/Config.in +++ b/package/python-pyparsing/Config.in @@ -1,5 +1,6 @@ config BR2_PACKAGE_PYTHON_PYPARSING bool "python-pyparsing" + depends on BR2_PACKAGE_PYTHON3 help The pyparsing module is an alternative approach to creating and executing simple grammars, vs. the traditional lex/yacc