File tree 1 file changed +14
-8
lines changed
1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 8
8
import re
9
9
import sys
10
10
import sysconfig
11
+ import warnings
11
12
from glob import glob , escape
12
13
import _osx_support
13
14
30
31
SUBPROCESS_BOOTSTRAP = True
31
32
32
33
33
- from distutils import log
34
- from distutils .command .build_ext import build_ext
35
- from distutils .command .build_scripts import build_scripts
36
- from distutils .command .install import install
37
- from distutils .command .install_lib import install_lib
38
- from distutils .core import Extension , setup
39
- from distutils .errors import CCompilerError , DistutilsError
40
- from distutils .spawn import find_executable
34
+ with warnings .catch_warnings ():
35
+ # bpo-41282 (PEP 632) deprecated distutils but setup.py still uses it
36
+ warnings .filterwarnings ("ignore" , "The distutils package is deprecated" ,
37
+ DeprecationWarning )
38
+
39
+ from distutils import log
40
+ from distutils .command .build_ext import build_ext
41
+ from distutils .command .build_scripts import build_scripts
42
+ from distutils .command .install import install
43
+ from distutils .command .install_lib import install_lib
44
+ from distutils .core import Extension , setup
45
+ from distutils .errors import CCompilerError , DistutilsError
46
+ from distutils .spawn import find_executable
41
47
42
48
43
49
# Compile extensions used to test Python?
You can’t perform that action at this time.
0 commit comments