[Buildroot] [git commit] package/python-idna: select unicodedata support in python interpreter

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Jul 18 20:25:27 UTC 2019


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

idna requires unicodedata:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "usr/lib/python3.7/site-packages/idna/__init__.py", line 2, in <module>
  File "usr/lib/python3.7/site-packages/idna/core.py", line 3, in <module>
ModuleNotFoundError: No module named 'unicodedata'

Signed-off-by: Alex Xu <alex_y_xu at yahoo.ca>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/python-idna/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/python-idna/Config.in b/package/python-idna/Config.in
index 1fd56ceaf6..e3e548d493 100644
--- a/package/python-idna/Config.in
+++ b/package/python-idna/Config.in
@@ -1,5 +1,7 @@
 config BR2_PACKAGE_PYTHON_IDNA
 	bool "python-idna"
+	select BR2_PACKAGE_PYTHON_UNICODEDATA if BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON3_UNICODEDATA if BR2_PACKAGE_PYTHON3
 	help
 	  A library to support the Internationalised Domain Names in
 	  Applications (IDNA) protocol as specified in RFC 5891. This


More information about the buildroot mailing list