[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-distutils-sig
Subject:    [Distutils] ccompiler problem
From:       gward () python ! net (Greg Ward)
Date:       2000-06-24 2:15:52
Message-ID: 20000623221552.C1145 () beelzebub
[Download RAW message or body]

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
-- 
Greg Ward - Linux weenie                                gward@python.net
http://starship.python.net/~gward/
Quick!!  Act as if nothing has happened!


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic