File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2525except Exception :
2626 from distutils .core import setup , Extension
2727
28- from setuptools .command .build_ext import build_ext
29- from setuptools .errors import CCompilerError , ExecError , PlatformError
28+ from distutils .command .build_ext import build_ext
29+ from distutils .errors import CCompilerError , DistutilsExecError , DistutilsPlatformError
3030
3131# Fix to build sdist under vagrant
3232import os
4141 include_dirs .append ('compat/win32' )
4242 ext_errors = (CCompilerError , DistutilsExecError , DistutilsPlatformError , IOError )
4343else :
44- ext_errors = (CCompilerError , ExecError , PlatformError )
44+ ext_errors = (CCompilerError , DistutilsExecError , DistutilsPlatformError )
4545
4646
4747class BuildFailed (Exception ):
@@ -52,7 +52,7 @@ class ve_build_ext(build_ext):
5252 def run (self ):
5353 try :
5454 build_ext .run (self )
55- except PlatformError :
55+ except DistutilsPlatformError :
5656 raise BuildFailed ()
5757
5858 def build_extension (self , ext ):
You can’t perform that action at this time.
0 commit comments