Python and Autoconf

Martin von Loewis loewis at informatik.hu-berlin.de
Thu May 24 11:05:32 EDT 2001


Glen Starchman <glen at enabledventures.com> writes:

> Anyone have any more Python-specific autoconf macros? 

While I believe that you can solve your problems with autoconf, you
may consider using distutils for the Python parts. That has a
convenient procedure for building and installing Python libraries,
both for Python and C modules.

Also, much of the compile-time configuration stuff is often done at
runtime. E.g. you don't check at installation time whether a certain
module is available (unless you plan to install it if it is
not). Instead, if you have fallback code, you perform a runtime check
by importing the module, and falling back on ImportError.

You can still integrate distutils nicely into a make(1) driven build
procedure, see Python 2.1 for an example.

Regards,
Martin




More information about the Python-list mailing list