SciPy.org SciPy 0.6.0 API Documentation Generated by Endo, 2007-10-17

Tools for compiling C/C++ code to extension modules

The main function, build_extension(), takes the C/C++ file along with some other options and builds a Python extension. It uses distutils for most of the heavy lifting.

choose_compiler() is also useful (mainly on windows anyway) for trying to determine whether MSVC++ or gcc is available. MSVC doesn't handle templates as well, so some of the code emitted by the python->C conversions need this info to choose what kind of code to create.

The other main thing here is an alternative version of the MingW32 compiler class. The class makes it possible to build libraries with gcc even if the original version of python was built using MSVC. It does this by converting a pythonxx.lib file to a libpythonxx.a file. Note that you need write access to the pythonxx/lib directory to do this.

Variables

Classes

Function summary

Functions

Imported Names

Local nameRefers to
commandscommands
distutils.dir_utildistutils.dir_util
distutils.sysconfigdistutils.sysconfig
exceptionsexceptions
Extensionnumpy.distutils.core.Extension
osos
platform_infoSciPy.weave.platform_info
stringstring
syssys
tempfiletempfile
timetime