|
From: Patrice D. <per...@fr...> - 2008-12-19 10:57:08
|
On Fri, Dec 12, 2008 at 02:01:33AM +0100, Patrice Dumas wrote: > Hello, > > Using -I$(srcdir)/.. instead of -I.. is not enough for python to have > out of source build work rightly. Indeed python will still use the > ming_wrap.c from the srcdir, even if there is a new ming_wrap.c in the > build dir. To fix that I think that the best would be to modify > setup.py.in such that if there is a ming_wrap.c in the build directory > it uses it, otherwise it uses the one in the source directory. I am not > good enough in python to do that, though... Things are worse, in fact. distutil seems to be able to do the object file only in the source file directory. I found a workaround that looks fine. Patch attached. -- Pat |