From bda352590bdb041779b62157edb9ee04f85bb833 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <scoder@users.berlios.de>
Date: Fri, 6 Jun 2008 21:19:47 +0200
Subject: [PATCH] Pyrex merge: disable multiple compilation in one context,
 verbose mode to output file names during compilation

---
 Cython/Compiler/Main.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py
index 247b6d019..c2348fce4 100644
--- a/Cython/Compiler/Main.py
+++ b/Cython/Compiler/Main.py
@@ -334,6 +334,7 @@ class CompilationOptions:
     recursive         boolean   Recursively find and compile dependencies
     timestamps        boolean   Only compile changed source files. If None,
                                 defaults to true when recursive is true.
+    verbose           boolean   Always print source names being compiled
     quiet             boolean   Don't print source names in recursive mode
     transforms        Transform.TransformSet Transforms to use on the parse tree
     
@@ -429,13 +430,16 @@ def compile_multiple(sources, options):
     timestamps = options.timestamps
     if timestamps is None:
         timestamps = recursive
-    verbose = recursive and not options.quiet
+    verbose = options.verbose or ((recursive or timestamps) and not options.quiet)
     for source in sources:
         if source not in processed:
             if not timestamps or context.c_file_out_of_date(source):
                 if verbose:
                     sys.stderr.write("Compiling %s\n" % source)
                 result = context.compile(source, options)
+                # Compiling multiple sources in one context doesn't quite
+                # work properly yet.
+                context = Context(options.include_path) # to be removed later
                 results.add(source, result)
             processed.add(source)
             if recursive:
@@ -514,6 +518,7 @@ default_options = dict(
     generate_pxi = 0,
     recursive = 0,
     timestamps = None,
+    verbose = 0,
     quiet = 0,
     transforms = Transform.TransformSet(),
     working_path = "")
-- 
2.30.9