Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed distutils from MinGW detection #4817

Merged
merged 1 commit into from Jul 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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