Skip to content

Commit ead302b

Browse files
committed
Revert "lib: py: remove distutils in favor of setuptools"
This reverts commit b4432b8.
1 parent d0531c4 commit ead302b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/py/setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
except 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
3232
import os
@@ -41,7 +41,7 @@
4141
include_dirs.append('compat/win32')
4242
ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError, IOError)
4343
else:
44-
ext_errors = (CCompilerError, ExecError, PlatformError)
44+
ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError)
4545

4646

4747
class 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):

0 commit comments

Comments
 (0)