Author: Brian Kearns <[email protected]>
Branch:
Changeset: r60778:5c18387c65e8
Date: 2013-01-31 11:49 -0500
http://bitbucket.org/pypy/pypy/changeset/5c18387c65e8/
Log: try to fix _testcapi/_ctypes_test for win32
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
@@ -1,6 +1,5 @@
import os, sys
import tempfile
-import gc
def compile_shared():
"""Compile '_ctypes_test.c' into an extension module, and import it
@@ -19,7 +18,7 @@
if sys.platform == 'win32':
ccflags = ['-D_CRT_SECURE_NO_WARNINGS']
else:
- ccflags = ['-fPIC']
+ ccflags = ['-fPIC', '-Wimplicit-function-declaration']
res = compiler.compile([os.path.join(thisdir, '_ctypes_test.c')],
include_dirs=[include_dir],
extra_preargs=ccflags)
@@ -35,10 +34,10 @@
library = os.path.join(thisdir, '..', 'include', 'python27')
if not os.path.exists(library + '.lib'):
# For a local translation
- library = os.path.join(thisdir, '..', 'pypy', 'translator',
- 'goal', 'libpypy-c')
+ library = os.path.join(thisdir, '..', 'pypy', 'goal', 'libpypy-c')
libraries = [library, 'oleaut32']
- extra_ldargs = ['/MANIFEST'] # needed for VC10
+ extra_ldargs = ['/MANIFEST', # needed for VC10
+ '/EXPORT:init_ctypes_test']
else:
libraries = []
extra_ldargs = []
diff --git a/lib_pypy/_testcapi.py b/lib_pypy/_testcapi.py
--- a/lib_pypy/_testcapi.py
+++ b/lib_pypy/_testcapi.py
@@ -34,8 +34,7 @@
library = os.path.join(thisdir, '..', 'include', 'python27')
if not os.path.exists(library + '.lib'):
# For a local translation
- library = os.path.join(thisdir, '..', 'pypy', 'translator',
- 'goal', 'libpypy-c')
+ library = os.path.join(thisdir, '..', 'pypy', 'goal', 'libpypy-c')
libraries = [library, 'oleaut32']
extra_ldargs = ['/MANIFEST', # needed for VC10
'/EXPORT:init_testcapi']
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit