[pypy-svn] r79136 - pypy/trunk/pypy/module/cpyext

afa at codespeak.net afa at codespeak.net
Mon Nov 15 22:48:25 CET 2010


Author: afa
Date: Mon Nov 15 22:48:23 2010
New Revision: 79136

Modified:
   pypy/trunk/pypy/module/cpyext/presetup.py
Log:
Fix "presetup" compilation of an external module to
be imported by bin/py.py


Modified: pypy/trunk/pypy/module/cpyext/presetup.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/presetup.py	(original)
+++ pypy/trunk/pypy/module/cpyext/presetup.py	Mon Nov 15 22:48:23 2010
@@ -21,6 +21,8 @@
 
 from pypy.conftest import gettestobjspace
 from pypy.module.cpyext.api import build_bridge
+from pypy.module.imp.importing import get_so_extension
+
 usemodules = ['cpyext', 'thread']
 if sys.platform == 'win32':
     usemodules.append('_winreg') # necessary in distutils
@@ -35,6 +37,7 @@
 
 def patch_distutils():
     sysconfig.get_python_inc = get_python_inc
+    sysconfig.get_config_vars()['SO'] = get_so_extension(space)
 
 patch_distutils()
 



More information about the Pypy-commit mailing list