summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index accfd18f..af99b59b 100644
--- a/setup.py
+++ b/setup.py
@@ -9,10 +9,12 @@
import os
import sys
+# Setuptools has to be imported before distutils, or things break.
from setuptools import setup
-from distutils.core import Extension # pylint: disable=no-name-in-module, import-error
-from distutils.command.build_ext import build_ext # pylint: disable=no-name-in-module, import-error
-from distutils import errors # pylint: disable=no-name-in-module
+from distutils.core import Extension # pylint: disable=no-name-in-module, import-error, wrong-import-order
+from distutils.command.build_ext import build_ext # pylint: disable=no-name-in-module, import-error, wrong-import-order
+from distutils import errors # pylint: disable=no-name-in-module, wrong-import-order
+
# Get or massage our metadata. We exec coverage/version.py so we can avoid
# importing the product code into setup.py.