[Buildroot] [git commit] package/python-attrs: depends on python3
Yann E. MORIN
yann.morin.1998 at free.fr
Sat Sep 25 16:31:10 UTC 2021
commit: https://git.buildroot.net/buildroot/commit/?id=ef5c8be25ab373866b5a92d3d9f31bf36b7a8abf
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
python-attrs contains a file with API for python 3.6+.
Although we can make a "tweak" and remove this specific file
for python2, we prefer to make this package available only for
python3, because the day this package (and many others) will drop
support for python2 is probably very close.
In addition, update python-attrs recursive dependencies to
depend on python3 too (python-automat is the only one left).
Fixes:
- http://autobuild.buildroot.net/results/aa6/aa6889bc254eaa93adb4fc1a71bcee9f2f23cb33/
Signed-off-by: Asaf Kahlon <asafka7 at gmail.com>
[yann.morin.1998 at free.fr: fix check-package]
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
package/python-attrs/Config.in | 1 +
package/python-automat/Config.in | 1 +
2 files changed, 2 insertions(+)
diff --git a/package/python-attrs/Config.in b/package/python-attrs/Config.in
index fb0ab248fa..b1a69d0e3e 100644
--- a/package/python-attrs/Config.in
+++ b/package/python-attrs/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_PYTHON_ATTRS
bool "python-attrs"
+ depends on BR2_PACKAGE_PYTHON3
help
attrs is the Python package that will bring back the joy of
writing classes by relieving you from the drudgery of
diff --git a/package/python-automat/Config.in b/package/python-automat/Config.in
index ee02d22b5b..9d22276c2c 100644
--- a/package/python-automat/Config.in
+++ b/package/python-automat/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_PYTHON_AUTOMAT
bool "python-automat"
+ depends on BR2_PACKAGE_PYTHON3 # python-attrs
select BR2_PACKAGE_PYTHON_ATTRS # runtime
select BR2_PACKAGE_PYTHON_SIX # runtime
help
More information about the buildroot
mailing list