[pypy-commit] cffi default: Import from setuptools instead of distutils from here

arigo pypy.commits at gmail.com
Fri Feb 23 04:33:31 EST 2018


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r3105:1a92038e7904
Date: 2018-02-23 10:31 +0100
http://bitbucket.org/cffi/cffi/changeset/1a92038e7904/

Log:	Import from setuptools instead of distutils from here (see issue
	#345)

diff --git a/cffi/setuptools_ext.py b/cffi/setuptools_ext.py
--- a/cffi/setuptools_ext.py
+++ b/cffi/setuptools_ext.py
@@ -148,8 +148,8 @@
 
 def _add_py_module(dist, ffi, module_name):
     from distutils.dir_util import mkpath
-    from distutils.command.build_py import build_py
-    from distutils.command.build_ext import build_ext
+    from setuptools.command.build_py import build_py
+    from setuptools.command.build_ext import build_ext
     from distutils import log
     from cffi import recompiler
 


More information about the pypy-commit mailing list