[Distutils] Header installation

Konrad Hinsen hinsen@cnrs-orleans.fr
Wed Mar 28 11:34:01 2001


I am trying to distutilsify my Python packages, but I am stuck at an
almost undocumented point: installation of header files. In fact, the
Distutils manual only says that it can be done, but not how, and the
only real-life example that does it seems to be NumPy.

Here's my situation: I have a distribution called "ScientificPython"
which contains a Python package "Scientific", which in turn contains
an extension module for which some header files exist. These files
are supposed to end up in $prefix/pythonx.y/Scientific, such that
they can be included as "Scientific/xxx". However, if I do exactly what
NumPy does, they end up in $prefix/pythonx.y/ScientificPython. The
only way I found to change the header installation directory is by
specifying an option during installation, but I want this defined
in setup.py. Any suggestions?

Konrad.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                            | E-Mail: hinsen@cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron                       | Fax:  +33-2.38.63.15.17
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais
-------------------------------------------------------------------------------