From a6f395f5e48c963616a92fe21232efcb6c86a948 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 1 Mar 2021 13:16:12 +0100 Subject: [PATCH] setup.py: only import dependency enum34 for python_version < 3.4.0 --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index cbb9e1c..8a5341f 100755 --- a/setup.py +++ b/setup.py @@ -37,5 +37,9 @@ ), setup_requires=["cffi>=1.6.0"], cffi_modules=["ffi_build.py:ffibuilder"], - install_requires=["cffi>=1.6.0", "six", 'enum34'], + install_requires=[ + "cffi>=1.6.0", + "six", + 'enum34; python_version < "3.4.0"' + ], )