diff mbox series

[v1,1/2] package/python-jinja2: fix runtime python modules dependencies

Message ID 20200322211002.30765-1-ps.report@gmx.net
State Changes Requested
Headers show
Series [v1,1/2] package/python-jinja2: fix runtime python modules dependencies | expand

Commit Message

Peter Seiderer March 22, 2020, 9:10 p.m. UTC
- add python unicodedata runtime dependency, fixes:
  File "usr/lib/python3.8/site-packages/jinja2/lexer.py", line 46, in <module>
  ModuleNotFoundError: No module named 'unicodedata'
---
 package/python-jinja2/Config.in | 2 ++
 1 file changed, 2 insertions(+)

Comments

Thomas Petazzoni March 22, 2020, 9:17 p.m. UTC | #1
On Sun, 22 Mar 2020 22:10:01 +0100
Peter Seiderer <ps.report@gmx.net> wrote:

> - add python unicodedata runtime dependency, fixes:
>   File "usr/lib/python3.8/site-packages/jinja2/lexer.py", line 46, in <module>
>   ModuleNotFoundError: No module named 'unicodedata'
> ---
>  package/python-jinja2/Config.in | 2 ++
>  1 file changed, 2 insertions(+)

These two patches lack your Signed-off-by. Also, what about adding
runtime tests for those two packages, to detect such missing runtime
dependencies ?

Thanks!

Thomas
Peter Seiderer March 22, 2020, 9:39 p.m. UTC | #2
Hello Thomas,

On Sun, 22 Mar 2020 22:17:50 +0100, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:

> On Sun, 22 Mar 2020 22:10:01 +0100
> Peter Seiderer <ps.report@gmx.net> wrote:
>
> > - add python unicodedata runtime dependency, fixes:
> >   File "usr/lib/python3.8/site-packages/jinja2/lexer.py", line 46, in <module>
> >   ModuleNotFoundError: No module named 'unicodedata'
> > ---
> >  package/python-jinja2/Config.in | 2 ++
> >  1 file changed, 2 insertions(+)
>
> These two patches lack your Signed-off-by. Also, what about adding
> runtime tests for those two packages, to detect such missing runtime
> dependencies ?

Ups, will re-send with the Signed-off-by added...

Will take a look at the runtime tests...

Regards,
Peter

>
> Thanks!
>
> Thomas
diff mbox series

Patch

diff --git a/package/python-jinja2/Config.in b/package/python-jinja2/Config.in
index a1900e94d5..5b99df75b8 100644
--- a/package/python-jinja2/Config.in
+++ b/package/python-jinja2/Config.in
@@ -1,6 +1,8 @@ 
 config BR2_PACKAGE_PYTHON_JINJA2
 	bool "python-jinja2"
 	select BR2_PACKAGE_PYTHON_MARKUPSAFE # runtime
+	select BR2_PACKAGE_PYTHON_UNICODEDATA if BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON3_UNICODEDATA if BR2_PACKAGE_PYTHON3
 	help
 	  Jinja2 is a template engine written in pure Python. It
 	  provides a Django inspired non-XML syntax but supports