I agree that it would be nice to be able to pass build_ext arguments to develop. You can put build_ext options in a setup.cfg file. And, FWIW, buildout has a recipe that lets you specify custom build_ext options when creating develop eggs. Jim On Jun 28, 2007, at 2:58 PM, Jamie Kirkpatrick wrote:
Couple of things.
Currently there is no way to pass custom options through setuptools "develop" to distutils build_ext. What this means in practice is that you cannot do the following things:
• pass the --debug flag to build_ext so as to have your module build against debug libraries. • pass any of the SWIG options through. • I'm sure there are other limitations.
Because of this I ended up abandoning the swig functionality of distutils and running that as a pre distuils phase of my build scripts - it would be better If I could use it through distutils though. The show stopper is the fact I can't build against debug libraries - this means I cannot mix the --debug type builds and the develop functionality, something that seems like a logical thing to do.
Is there any chance that someone could find a way to allow options to be passed through to build_ext as it is run? I'm sure its just a case of adding another option to setuptools develop and then passing it through at the relevant point. If noone wants to take it on I'm happy to write a patch if we all agree its the way to go.
Thanks in advance
Jamie
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Jim Fulton mailto:jim@zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org