[Distutils] Header installation
M.-A. Lemburg
mal@lemburg.com
Wed Mar 28 13:40:04 2001
Konrad Hinsen wrote:
>
> 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?
There is a command install_headers which could be what you are
looking for. If that doesn't work, you could try to use
the data_files directive for this (I had to subclass it though
to do anything useful...).
--
Marc-Andre Lemburg
______________________________________________________________________
Company & Consulting: http://www.egenix.com/
Python Pages: http://www.lemburg.com/python/