Merge pull request #4817 from radarhere/mingw

Removed distutils from MinGW detection
This commit is contained in:
Hugo van Kemenade 2020-07-29 09:48:59 +03:00 committed by GitHub
commit 0d4e3ebcf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,6 @@ import struct
import subprocess
import sys
import warnings
from distutils import ccompiler
from distutils.command.build_ext import build_ext
from setuptools import Extension, setup
@ -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: