Skip to content

Commit

Permalink
Merge pull request #4817 from radarhere/mingw
Browse files Browse the repository at this point in the history
Removed distutils from MinGW detection
  • Loading branch information
hugovk committed Jul 29, 2020
2 parents c9499ed + 73f51ae commit 0d4e3eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -14,7 +14,6 @@
import subprocess
import sys
import warnings
from distutils import ccompiler
from distutils.command.build_ext import build_ext

from setuptools import Extension, setup
Expand Down Expand Up @@ -131,7 +130,7 @@ class RequiredDependencyException(Exception):
pass


PLATFORM_MINGW = "mingw" in ccompiler.get_default_compiler()
PLATFORM_MINGW = os.name == "nt" and "GCC" in sys.version
PLATFORM_PYPY = hasattr(sys, "pypy_version_info")

if sys.platform == "win32" and PLATFORM_MINGW:
Expand Down

0 comments on commit 0d4e3eb

Please sign in to comment.