mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Do not explicitly import distutils
This commit is contained in:
parent
42bb401e88
commit
a10634e13f
|
@ -3,7 +3,8 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import sysconfig
|
import sysconfig
|
||||||
from distutils import ccompiler
|
|
||||||
|
from setuptools.command.build_ext import new_compiler
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
@ -360,7 +361,7 @@ int main(int argc, char* argv[])
|
||||||
% sys.prefix.replace("\\", "\\\\")
|
% sys.prefix.replace("\\", "\\\\")
|
||||||
)
|
)
|
||||||
|
|
||||||
compiler = ccompiler.new_compiler()
|
compiler = new_compiler()
|
||||||
compiler.add_include_dir(sysconfig.get_config_var("INCLUDEPY"))
|
compiler.add_include_dir(sysconfig.get_config_var("INCLUDEPY"))
|
||||||
|
|
||||||
libdir = sysconfig.get_config_var("LIBDIR") or sysconfig.get_config_var(
|
libdir = sysconfig.get_config_var("LIBDIR") or sysconfig.get_config_var(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user