All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/python-pyparsing: needs python3
@ 2022-01-11 20:48 Yann E. MORIN
  0 siblings, 0 replies; only message in thread
From: Yann E. MORIN @ 2022-01-11 20:48 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=b4705dfdd43d9e62c11d42bc2fb3f6600a5a7e33
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 <module>
    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 <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
 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
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-11 20:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 20:48 [Buildroot] [git commit] package/python-pyparsing: needs python3 Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.