mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Merge pull request #4817 from radarhere/mingw
Removed distutils from MinGW detection
This commit is contained in:
commit
0d4e3ebcf9
3
setup.py
3
setup.py
|
@ -14,7 +14,6 @@ import struct
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
from distutils import ccompiler
|
|
||||||
from distutils.command.build_ext import build_ext
|
from distutils.command.build_ext import build_ext
|
||||||
|
|
||||||
from setuptools import Extension, setup
|
from setuptools import Extension, setup
|
||||||
|
@ -131,7 +130,7 @@ class RequiredDependencyException(Exception):
|
||||||
pass
|
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")
|
PLATFORM_PYPY = hasattr(sys, "pypy_version_info")
|
||||||
|
|
||||||
if sys.platform == "win32" and PLATFORM_MINGW:
|
if sys.platform == "win32" and PLATFORM_MINGW:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user