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') undef_macros = [NDEBUG] macros = [("USE_PYMALLOC", "0")] libs = [] setup( name = 'foobar', ext_modules=[ Extension("foobar", [ "sip/_foobar.sip", "foobar.cpp", ], depends = [ "sip/_foobar.sip", "foobar.cpp", ], include_dirs=["."], define_macros=macros, library_dirs=[], libraries=libs, undef_macros=undef_macros, ), ], cmdclass = {'build_ext': sipdistutils.build_ext} ) ----------------------------------------------------- Thanks, Stefano Brilli
--- /home/cyber/Desktop/sipdistutils.py 2009-04-21 04:30:37.000000000 +0200 +++ sipdistutils.py 2009-04-22 17:17:44.000000000 +0200 @@ -9,6 +9,8 @@ import os import sys +additional_sip_options = [] + def replace_suffix(path, new_suffix): return os.path.splitext(path)[0] + new_suffix @@ -84,7 +86,7 @@ return generated_sources + other_sources def _sip_compile(self, sip_bin, source, sbf): - self.spawn([sip_bin, - "-c", self.build_temp, + self.spawn([sip_bin] + additional_sip_options + + ["-c", self.build_temp, "-b", sbf, source])
_______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt