Commits

Tarek Ziadé committed eba1375

removing setuptools dep for py3 and install

Comments (0)

Files changed (1)

-try:
-    from setuptools import setup
-except ImportError:
-    from distutils.core import setup   # NOQA
+import sys
+
+ispy3 = sys.version_info[0] == 3
+
+if ispy3:
+    from distutils.core import setup
+else:
+    try:
+        from setuptools import setup
+    except ImportError:
+        from distutils.core import setup   # NOQA
 
 from flake8 import __version__