Ronald Oussoren <[EMAIL PROTECTED]> writes: > On 26-jan-2006, at 13:29, Thomas Heller wrote: > >> Thomas Wouters <[EMAIL PROTECTED]> writes: >> >>> On Thu, Jan 26, 2006 at 09:54:51AM +0100, Thomas Heller wrote: >>> >>>> The current state is that ctypes uses GPL'd tools to build libffi, >>>> and those can't be committed into Python SVN. >>> >>>> http://mail.python.org/pipermail/python-dev/2006-January/059937.html > > It shouldn't be too hard to use Python's main configure script to > calculate the information necessary to build libffi. A lot of it is > already calculated anyway (sizeof various type, endianness), some can > be hardcoded (FFI_NO_RAW_API). > > In PyObjC I just compile the files I need from my setup.py. But I have > an easy task, I just need to support two CPU architectures on one OS.
Thanks for the encouragement - Martin suggested a similar approach. >From my understanding (which goes not very far) the configuration does two things: determine the set of source files that needs to go in depending on the cpu architecture, and to determine some information and make them available in #defines. I have to check if this is possible without patching the libffi sources themselves. I guess I could look into the PyObjC setuop script. Personally I only have access to machines running windows, linux (x86 and x86_64), and OS X (plus possibly a Mac running ubuntu), so I could only do it for those. Maybe support for other architectures can be added by volunteers? Besides: James Y Knight seems to be correct that all the scripts needed to build libffi seems to have this special exception from the GPL. Thomas _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com