[pypy-svn] pypy fast-forward: Fix compilation of the _ctypes_test module
amauryfa
commits-noreply at bitbucket.org
Wed Dec 29 15:32:38 CET 2010
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40263:84ed31fe7c3c
Date: 2010-12-29 15:24 +0100
http://bitbucket.org/pypy/pypy/changeset/84ed31fe7c3c/
Log: Fix compilation of the _ctypes_test module
diff --git a/lib_pypy/_ctypes_test.py b/lib_pypy/_ctypes_test.py
--- a/lib_pypy/_ctypes_test.py
+++ b/lib_pypy/_ctypes_test.py
@@ -15,6 +15,8 @@
output_dir = tempfile.mkdtemp()
from distutils.ccompiler import new_compiler
+ from distutils import sysconfig
+
compiler = new_compiler()
compiler.output_dir = output_dir
@@ -30,14 +32,13 @@
object_filename = res[0]
# set link options
+ output_filename = '_ctypes_test' + sysconfig.get_config_var('SO')
if sys.platform == 'win32':
- output_filename = '_ctypes_test.pyd'
# XXX libpypy-c.lib is currently not installed automatically
library = os.path.join(thisdir, '..', 'include', 'libpypy-c')
libraries = [library, 'oleaut32']
extra_ldargs = ['/MANIFEST'] # needed for VC10
else:
- output_filename = '_ctypes_test.so'
libraries = []
extra_ldargs = []
More information about the Pypy-commit
mailing list