Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2931:f1bd1d88c018
Date: 2017-05-09 18:25 +0200
http://bitbucket.org/cffi/cffi/changeset/f1bd1d88c018/
Log: Print the current directory (or the value tmpdir if explicit) in
ffi.compile(verbose=True).
diff --git a/cffi/recompiler.py b/cffi/recompiler.py
--- a/cffi/recompiler.py
+++ b/cffi/recompiler.py
@@ -1479,6 +1479,12 @@
_patch_for_embedding(patchlist)
if target != '*':
_patch_for_target(patchlist, target)
+ if compiler_verbose:
+ if tmpdir == '.':
+ msg = 'the current directory is'
+ else:
+ msg = 'setting the current directory to'
+ print '%s %r' % (msg, os.path.abspath(tmpdir))
os.chdir(tmpdir)
outputfilename = ffiplatform.compile('.', ext,
compiler_verbose, debug)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit