[Python-Dev] Include ctypes into core Python?

Thomas Heller theller at python.net
Tue Jan 17 20:32:59 CET 2006


"Martin v. Löwis" <martin at v.loewis.de> writes:

> Guido van Rossum wrote:
>> On 1/16/06, Thomas Heller <theller at python.net> wrote:
>> 
>>>It looks like we need a pronouncement now.
>> 
>> 
>> Sorry. It appeared to me that there was general agreement to using a
>> strongly worded warning in the docs, so I tuned out of the rest of the
>> discussion. So for the record, I'm fine with that.
>
> Ok. If Thomas checks in the code and the documentation, I'll do the
> Windows/setup part of it.
Great.

Now, I'm trying to build ctypes on OS X as the first non-windows
platform.  As I said, ctypes currently has its own source copy of libffi
(since there are no separate releases of libffi, and the only platform
that comes with libffi by default that I know is cygwin).

It is built into a static non-shared library with a call to configure
like this:

   cd <build_dir>
   <src_dir>/configure --disable-shared --enable-static \
     --enable-multilib=no --prefix=<inst_dir>
   make install

then libffi.a is linked into the _ctypes extension module.

I know near to nothing about 'configure', can/should a call to os.system
with the commands above be added to setup.py, or how could this be
approached?

Thomas



More information about the Python-Dev mailing list