[FIX] packaging: avoid jinja2 asyncsupport in py2exe

Since 78ba90d5, when building the windows package, py2exe fails to
compiles jinja2 asyncsupport module. Even tough jinja detects the
environement, py2exe tries to compile the async part. The problem comes
from the fact that async keyword was introduced in python 3 and we use
py2exe with python 2.7.

With this commit the async part of jinja is execluded from py2exe.

closes odoo/odoo#32913

Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
This commit is contained in:
Christophe Monniez
2019-04-25 08:46:50 +00:00
parent 90af6254ba
commit 4c35983d08
+1 -1
View File
@@ -112,7 +112,7 @@ def py2exe_options():
'xml', 'xml.dom',
'yaml',
],
'excludes': ['Tkconstants', 'Tkinter', 'tcl'],
'excludes': ['jinja2.asyncsupport', 'Tkconstants', 'Tkinter', 'tcl'], # do not forward-port 11.0 does not use py2exe
}
},
'data_files': py2exe_datafiles()