[PyKDE] [PATCH] Compiling SIP with distutils

Giovanni Bajo rasky at develer.com
Thu Oct 27 13:41:47 BST 2005


Phil Thompson <phil at riverbankcomputing.co.uk> wrote:

> Is the swig_sources() method so called because it hooks into standard
> wrapper support in distutils? Or were you just trying to hurt my feelings?
> :)

Eheheh no, that's the hook point into distutils (which already supports
SWIG). It's obviously the best place :)

> You can get the name of the sip executable from the sipconfig module.

Ah, which one exactly? _pkg_config["sip_bin"] + platform-dependent
extension? Isn't _pkg_config private of the module (given the name)?

> Should this be added to sipconfig.py rather than being a separate module?

Yes, it's probably a better place. I believe the next step would be
compiling SIP itself with distutils. After that, SIP will be totally
distutils based, so your custom build engine could be moved into PyQt only.
I reckon this could ease adoption of SIP as a general wrapping tool.

> Any chance of some documentation?

Within sipref.txt? Sure, I can write something if you agree on getting this
included.
-- 
Giovanni Bajo




More information about the PyQt mailing list