[Distutils] Installing header files with setuptools
James Porter
jvporter at wisc.edu
Wed Mar 3 08:39:27 CET 2010
On 3/3/2010 12:02 AM, Phillip J. Eby wrote:
> Egg-based installs don't include headers. However, if you use the --root
> or --single-version-externally-managed options to "setup.py install", a
> backwards-compatible, non-egg-based installation is done, and the
> headers should be included in that case. This installation mode is used
> by default when building other types of binary distribution, such as RPMs.
Hm. In that case, is there an easy way to get install_headers to run
when installing via easy_install (or pip) *without* passing special
arguments to it?
Ideally I'd like to use the module as the basis for other C extension
modules and have source compilation via easy_install/pip "just work".
Right now I just have a duplicate of the headers in the dependent
project, but that seems somewhat hackish.
Nevertheless, at least it's encouraging to know what's really going on.
Thanks.
- Jim
More information about the Distutils-SIG
mailing list