[PyQt] sipdistutils.py - adding custom options to the sip build command

Phil Thompson phil at riverbankcomputing.com
Fri May 1 09:10:38 BST 2009


On Fri, 24 Apr 2009 20:28:14 +0200, Stefano Brilli <cyber at develer.com>
wrote:
> Hi,
> 
> While using sipdistutils.py I noticed that it is not possible to add the
> "-e" flag to the sip build command. So I did a little change in
> sipdistutils.py
> 
> I would like to contribute with this patch.
> 
> (And this is a small using example)
> 
> --------------------- setup.py -----------------------
> from distutils.core import setup
> from distutils.extension import Extension
> import sipdistutils
> import os
> import sys
> 
> sipdistutils.additional_sip_options.append('-e')

I'm not a distutils expert - is adding a module-level list the right way to
extend the functionality? Seems a bit hackish to me.

Giovanni?

Phil


More information about the PyQt mailing list