[Distutils] High level options interface
John Skaller
skaller@maxtal.com.au
Wed, 23 Dec 1998 00:10:10 +1000
At 21:59 22/12/98 +1000, John Skaller wrote:
>The interface:
>
># module 'interscript/compilers.c
>
>class python_module:
> def __init__(self,**kwds):
> # initialise the object with kwds as configuration.
>
> def configure(self,**kwds):
> # extend or change configuration
>
> def compile(self,filename, **kwds):
> # compile the file, with given options
> # return the string name of the object file
>
> def link(self,modname, filenames, **kwds):
> # link the list of object files, with given options
> # to generate the named python module.
> # returns the name of the shared library
>
>class application:
> # exactly the same, except produces an executable
> # tool that can be invoked from the command line
>
># module 'interscript/compilers.cpp
># exactly the same, except for C++
BTW: One weakness of this interfaces is that there
is no provision for creating an object library
(archive, ar, etc etc).
-------------------------------------------------------
John Skaller email: skaller@maxtal.com.au
http://www.maxtal.com.au/~skaller
phone: 61-2-96600850
snail: 10/1 Toxteth Rd, Glebe NSW 2037, Australia