diff --git a/cmake/interrogate_setup_dot_py.py b/cmake/interrogate_setup_dot_py.py index 5e25fbf8a..e8d704512 100644 --- a/cmake/interrogate_setup_dot_py.py +++ b/cmake/interrogate_setup_dot_py.py @@ -40,14 +40,14 @@ setup_modules = [] try: - import distutils.core - setup_modules.append(distutils.core) + import setuptools + setup_modules.append(setuptools) except ImportError: pass try: - import setuptools - setup_modules.append(setuptools) + import distutils.core + setup_modules.append(distutils.core) except ImportError: pass