[pypy-commit] pypy default: Kill FakeSpace.include_dir
rlamy
pypy.commits at gmail.com
Wed Sep 7 14:55:52 EDT 2016
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch:
Changeset: r86949:de3eabaf671b
Date: 2016-09-07 19:50 +0100
http://bitbucket.org/pypy/pypy/changeset/de3eabaf671b/
Log: Kill FakeSpace.include_dir
diff --git a/pypy/module/cpyext/test/test_cpyext.py b/pypy/module/cpyext/test/test_cpyext.py
--- a/pypy/module/cpyext/test/test_cpyext.py
+++ b/pypy/module/cpyext/test/test_cpyext.py
@@ -127,7 +127,8 @@
raise RuntimeError("This interpreter does not define a filename "
"suffix for C extensions!")
-def get_sys_info_app(space):
+def get_sys_info_app():
+ from distutils.sysconfig import get_python_inc
if sys.platform == 'win32':
compile_extra = ["/we4013"]
link_extra = ["/LIBPATH:" + os.path.join(sys.exec_prefix, 'libs')]
@@ -140,7 +141,7 @@
link_extra = None
ext = get_so_suffix()
return SystemCompilationInfo(
- include_extra=[space.include_dir],
+ include_extra=[get_python_inc()],
compile_extra=compile_extra,
link_extra=link_extra,
ext=get_so_suffix())
@@ -159,9 +160,7 @@
class FakeSpace(object):
"""Like TinyObjSpace, but different"""
def __init__(self, config):
- from distutils.sysconfig import get_python_inc
self.config = config
- self.include_dir = get_python_inc()
def passthrough(self, arg):
return arg
@@ -473,7 +472,7 @@
return run
def wrap(func):
return func
- self.sys_info = get_sys_info_app(space)
+ self.sys_info = get_sys_info_app()
else:
interp2app = gateway.interp2app
wrap = self.space.wrap
More information about the pypy-commit
mailing list