
Hi all -- some months ago, I added completely experimental and untested support for compiling SWIG extensions to the Distutils. I even documented it! But I have been unable to verify for myself that it works, since I have been unable to build SWIG on my home PC. I haven't heard any reports of success, and the first reports of failure were from 4Thought last week. So: can anyone vouch for whether the Distutils SWIG support works at all, does the "right thing", etc? What's broken about it, what works? Should it even be documented? Greg -- Greg Ward gward@python.net http://starship.python.net/~gward/

Greg Ward wrote:
I can't vouch for everyone, but I usually run SWIG with the -shadow option. This generates .c and .py files. In this case the swig support is broken. I currently have swig1.1 installed. Until the problem of multiple output files is solved from extension modules I think it should stay hidden. Its a pretty simple fix to get multiple output files from an extension. I wrote it once then canned it. Basically you need should ask the Extension class for a list of outputs instead of just using its name. The extension class can then check to see if any of the source files end in .i Mike
-- Mike Olson Principal Consultant mike.olson@fourthought.com (303)583-9900 x 102 Fourthought, Inc. http://Fourthought.com Software-engineering, knowledge-management, XML, CORBA, Linux, Python

Greg Ward wrote:
I can't vouch for everyone, but I usually run SWIG with the -shadow option. This generates .c and .py files. In this case the swig support is broken. I currently have swig1.1 installed. Until the problem of multiple output files is solved from extension modules I think it should stay hidden. Its a pretty simple fix to get multiple output files from an extension. I wrote it once then canned it. Basically you need should ask the Extension class for a list of outputs instead of just using its name. The extension class can then check to see if any of the source files end in .i Mike
-- Mike Olson Principal Consultant mike.olson@fourthought.com (303)583-9900 x 102 Fourthought, Inc. http://Fourthought.com Software-engineering, knowledge-management, XML, CORBA, Linux, Python
participants (2)
-
Greg Ward
-
Mike Olson