Re: [Distutils] High level options interface
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
John Skaller writes:
BTW: One weakness of this interfaces is that there is no provision for creating an object library (archive, ar, etc etc).
Is this needed? I don't see where, unless we really want to
abstract everything in the build process. Essentially, we end
building our own make utility, which I think we should attempt to
avoid -- enough people have done that already.
-Fred
--
Fred L. Drake, Jr.
participants (2)
-
Fred L. Drake
-
John Skaller