[ANN] AutoSnake -- Autoconf macros For Python

Glen Starchman glen at enabledventures.com
Tue May 29 16:01:58 EDT 2001


Here's the first cut of a bunch of Autoconf macros for Python,
available at http://www.pythonify.com 

My aim here is not to compete with DistUtils, but rather to
compliment it. Enjoy.


AC_PROG_PYTHON -- sets PYTHON to the path of the python interpreter

AC_PY_LIB_PATH -- sets PY_LIB_PATH to the path where the python libs
are

AC_PY_CHECK_VERSION -- sets PY_VERSION to the version of the python
interpreter

AC_PY_CHECK_MOD -- given a module name (without an extension), sets
HAVE_PY_MOD_{modname} to true if found

AC_PY_MOD_PATH -- given a module name (without an extension), sets
PY_{modname}_PATH to the path the module was found in

AC_PY_CHECK_BUILTIN -- given a module name, checks if Python was
compiled with support for it. Sets HAVE_PY_BUILTIN_{modname} to true
if found.

AC_PY_CHECK_METHOD -- given a module name (without extension) and a
method name, check if module defines method. Sets
PY_HAVE_{modname}_{methodname} to true if found

AC_PY_CHECK_CLASS -- same as AC_PY_CHECK_METHOD but checks for a
class definition in module

AC_PY_SOURCE -- checks for a Python source distribution in several
"well-known" directories. Sets PY_SOURCE_DIR to the path where the
distribution was found

AC_PY_HEADERS -- checks for the Python header files in several
directories. Sets PY_HEADER_DIR to the path where the headers were
found.



More information about the Python-list mailing list