[Distutils] ccompiler problem

Greg Ward gward@python.net
Fri, 23 Jun 2000 22:15:52 -0400

On 23 June 2000, Thomas Heller said:
> Consider the object_filenames method:
>             if ext not in self.src_extensions:
>                 continue
>                 ^^^^^^^^^ Problem is here
> If you specify a source-file with an unknown extension
> in the sources list, you later get a traceback later
> saying something like 'sources and targets must have the same length'.
> IMO we have two possibilities here:
> - assume that 'ext' is something which should be passed to the linker
> - raise an error like 'Don't know how to compile this file'

I like the second option: if X is a source file, then the linker almost
by definition doesn't know what to do with it.  Linkers don't deal with
source, that's what compilers are for.  (At least on the platforms that
I'm familiar with, which is not many!)

And of course, there's a precedent in your resource-file patch... ;-)

Greg Ward - Linux weenie                                gward@python.net
Quick!!  Act as if nothing has happened!