From 4c35983d0890c6c3369a3d70e82426e42c920233 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Wed, 24 Apr 2019 09:44:38 +0000 Subject: [PATCH] [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) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b040cfc8854..1002d325ab9 100644 --- a/setup.py +++ b/setup.py @@ -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()