mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Removed distutils from MinGW detection
This commit is contained in:
parent
893489c572
commit
73f51ae484
3
setup.py
3
setup.py
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user