[Distutils] Subclassing the compiler

Simon Wood sgwoodjr at gmail.com
Sat Feb 21 23:06:51 CET 2009


The API reference for distutils tells how to get an instance of a new
compiler sub-class with the following command:

mycompiler = distutils.ccompiler.new_compiler(*plat=None*, *compiler=None*,
*verbose=0*, *dry_run=0*, *force=0*)

The API also specifies the commands to modify specific parameters within the
returned compiler sub-class. However the API says nothing about how to
actually "use" the new sub-class. In other words, how does one go about
getting the following to work (or something similar)?

python setup.py build

where the build steps now use 'mycompiler'


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090221/c66a1cbb/attachment.htm>

More information about the Distutils-SIG mailing list