[pypy-commit] pypy default: Document the hacking of cffi._pycparser here, in case we upgrade

arigo pypy.commits at gmail.com
Sun Jul 17 16:32:18 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r85745:0dba3fb6b61f
Date: 2016-07-17 22:33 +0200
http://bitbucket.org/pypy/pypy/changeset/0dba3fb6b61f/

Log:	Document the hacking of cffi._pycparser here, in case we upgrade
	cffi._pycparser.

diff --git a/lib_pypy/_pypy_winbase_build.py b/lib_pypy/_pypy_winbase_build.py
--- a/lib_pypy/_pypy_winbase_build.py
+++ b/lib_pypy/_pypy_winbase_build.py
@@ -1,7 +1,14 @@
 # Note: uses the CFFI out-of-line ABI mode.  We can't use the API
 # mode because ffi.compile() needs to run the compiler, which
-# needs 'subprocess', which needs 'msvcrt' already.
-
+# needs 'subprocess', which needs 'msvcrt' and '_subprocess',
+# which depend on '_pypy_winbase_cffi' already.
+#
+# Note that if you need to regenerate _pypy_winbase_cffi and
+# can't use a preexisting PyPy to do that, then running this
+# file should work as long as 'subprocess' is not imported
+# by cffi.  I had to hack in 'cffi._pycparser' to move an
+#'import subprocess' to the inside of a function.
+#
 # This module supports both msvcrt.py and _subprocess.py.
 
 from cffi import FFI


More information about the pypy-commit mailing list