[pypy-commit] pypy default: Use verify(), it's simpler because it also imports the library without having to give it a real name.
amauryfa
noreply at buildbot.pypy.org
Mon Jun 15 09:33:16 CEST 2015
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r78100:d68cc00b94d0
Date: 2015-06-14 22:40 +0200
http://bitbucket.org/pypy/pypy/changeset/d68cc00b94d0/
Log: Use verify(), it's simpler because it also imports the library
without having to give it a real name.
diff --git a/lib_pypy/_tkinter/tklib_build.py b/lib_pypy/_tkinter/tklib_build.py
--- a/lib_pypy/_tkinter/tklib_build.py
+++ b/lib_pypy/_tkinter/tklib_build.py
@@ -32,7 +32,7 @@
config_ffi = FFI()
config_ffi.cdef(
"#define TK_HEX_VERSION ...")
-config_lib = config_ffi.set_source("_tkinter.config_cffi", """
+config_lib = config_ffi.verify("""
#include <tk.h>
#define TK_HEX_VERSION ((TK_MAJOR_VERSION << 24) | \
(TK_MINOR_VERSION << 16) | \
@@ -44,8 +44,6 @@
library_dirs = libdirs
)
-config_ffi.compile(os.path.join(os.path.dirname(sys.argv[0]), '..'))
-from _tkinter.config_cffi import lib as config_lib
TK_HEX_VERSION = config_lib.TK_HEX_VERSION
HAVE_LIBTOMMATH = ((0x08050208 <= TK_HEX_VERSION < 0x08060000) or
More information about the pypy-commit
mailing list