File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 55from setuptools import Extension , setup
66from setuptools .command .bdist_wheel import bdist_wheel
77from setuptools .command .build_ext import build_ext
8-
9- # These were only added to setuptools in 59.0.1.
10- try :
11- from setuptools .errors import (
12- CCompilerError ,
13- DistutilsExecError ,
14- DistutilsPlatformError ,
15- )
16- except ImportError :
17- from distutils .errors import (
18- CCompilerError ,
19- DistutilsExecError ,
20- DistutilsPlatformError ,
21- )
8+ from setuptools .errors import CCompilerError , ExecError , PlatformError
229
2310cmdclass = {}
2411PYPY = hasattr (sys , "pypy_version_info" )
7461
7562# Cargo cult code for installing extension with pure Python fallback.
7663# Taken from SQLAlchemy, but this same basic code exists in many modules.
77- ext_errors = (CCompilerError , DistutilsExecError , DistutilsPlatformError )
64+ ext_errors = (CCompilerError , ExecError , PlatformError )
7865
7966
8067class BuildFailed (Exception ):
@@ -88,7 +75,7 @@ class ve_build_ext(build_ext):
8875 def run (self ) -> None :
8976 try :
9077 build_ext .run (self )
91- except DistutilsPlatformError :
78+ except PlatformError :
9279 raise BuildFailed
9380
9481 def build_extension (self , ext ) -> None :
You can’t perform that action at this time.
0 commit comments