]> granicus.if.org Git - python/commitdiff
Add strip_dir argument to the single call to .object_filenames(), to
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 16 Jan 2001 03:10:43 +0000 (03:10 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 16 Jan 2001 03:10:43 +0000 (03:10 +0000)
    prevent creating files such as build/lib.whatever/Modules/foo.o
    when given a source filename such as Modules/foo.c.

Lib/distutils/ccompiler.py

index 53901b3362a5b6ea2ac2f3646b1ea7771ef958c7..5e0b328042e6edb018231de2df9f1635751b1b8b 100644 (file)
@@ -366,6 +366,7 @@ class CCompiler:
         """
         # Get the list of expected output (object) files 
         objects = self.object_filenames (sources,
+                                         strip_dir=1,
                                          output_dir=output_dir)
 
         if self.force: