Revert "lib: py: remove distutils in favor of setuptools"

This reverts commit b4432b8f57aae67ef9ec23e539e973a5e486a48c.
diff --git a/lib/py/setup.py b/lib/py/setup.py
index d1d792b..a02cc4f 100644
--- a/lib/py/setup.py
+++ b/lib/py/setup.py
@@ -25,8 +25,8 @@
 except Exception:
     from distutils.core import setup, Extension
 
-from setuptools.command.build_ext import build_ext
-from setuptools.errors import CCompilerError, ExecError, PlatformError
+from distutils.command.build_ext import build_ext
+from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError
 
 # Fix to build sdist under vagrant
 import os
@@ -41,7 +41,7 @@
     include_dirs.append('compat/win32')
     ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError, IOError)
 else:
-    ext_errors = (CCompilerError, ExecError, PlatformError)
+    ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError)
 
 
 class BuildFailed(Exception):
@@ -52,7 +52,7 @@
     def run(self):
         try:
             build_ext.run(self)
-        except PlatformError:
+        except DistutilsPlatformError:
             raise BuildFailed()
 
     def build_extension(self, ext):