From e058a8341abcecd02049a16accb83b968f68b5bb Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Thu, 11 Oct 2018 22:37:35 +0200 Subject: [PATCH] Fixes Python3.6 and enum34 Module `enum34` should only be installed on Python < 3.4 Fixes host Python3 regression from ecd0bf6, the error was: ``` AttributeError: module 'enum' has no attribute 'IntFlag' ``` --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4dce3bb89f..e9729d6866 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,8 @@ data_files = [] -install_reqs = ['appdirs', 'colorama>=0.3.3', 'jinja2', 'six', 'enum34'] +install_reqs = ['appdirs', 'colorama>=0.3.3', 'jinja2', 'six', + 'enum34;python_version<"3.4"'] if os.name != 'nt': install_reqs.append('sh>=1.10')