Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r86210:f4068c63d5e3
Date: 2016-08-16 09:26 +0100
http://bitbucket.org/pypy/pypy/changeset/f4068c63d5e3/
Log: fixes
diff --git a/lib-python/3/distutils/command/build_ext.py
b/lib-python/3/distutils/command/build_ext.py
--- a/lib-python/3/distutils/command/build_ext.py
+++ b/lib-python/3/distutils/command/build_ext.py
@@ -11,7 +11,6 @@
from distutils.core import Command
from distutils.errors import *
from distutils.sysconfig import customize_compiler, get_python_version
-from distutils.sysconfig import get_config_h_filename
from distutils.dep_util import newer_group
from distutils.extension import Extension
from distutils.util import get_platform
@@ -30,6 +29,7 @@
show_compilers()
def _get_c_extension_suffix():
+ import importlib
suffixes = importlib.machinery.EXTENSION_SUFFIXES
return suffixes[0] if suffixes else None
@@ -204,6 +204,7 @@
# this allows distutils on windows to work in the source tree
if 0:
# pypy has no config_h_filename directory
+ from distutils.sysconfig import get_config_h_filename
self.include_dirs.append(os.path.dirname(get_config_h_filename()))
_sys_home = getattr(sys, '_home', None)
if _sys_home:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit