Next: Setting up to Run
Up: Python Bindings
Previous: How to Call Methods
  Contents
Building Python Extension Modules
SIDL creates a Setup.in file that can be used to build the
Python extension modules that you create.
Copy Makefile.pre.in from your Python distribution into the
directory containing Setup.in.
There are three make variables you need to set when your
building your Python extension module.
- EXTRAFLAGS --
This is for the user to pass in additional compilation flags.
- SIDLLIBDIR --
This should be a path (absolute or relative) to the directory
where the SIDL runtime library file (i.e. the shared
library/dynamic link library) resides.
- SIDLPYHDRS --
This should be a path (absolute or relative) to the top
directory in which the basic SIDL Python extensions are
installed.
- SIDLHDRS
This should be a path (absolute or relative) to the directory
where the SIDL C header files are installed.
Here is a hypothetical example:
% make -f Makefile.pre.in SIDLLIBDIR=/usr/local/lib
SIDLPYHDRS=/usr/local/include SIDLHDRS=/usr/local/include/SIDL
% make SIDLLIBDIR=/usr/local/lib/libsidl.so
SIDLPYHDR=/usr/local/include SIDLHDRS=/usr/local/include/SIDL boot
It is unlikely that any installation actually uses those settings.
Next: Setting up to Run
Up: Python Bindings
Previous: How to Call Methods
  Contents
babel-0.8.0
users_guide Last Modified 2003-01-14
http://www.llnl.gov/CASC/components
components@llnl.gov